getDistanceMatrix: Uses Google to get walking times for each student to each...

View source: R/getDistMatrix.R

getDistanceMatrixR Documentation

Uses Google to get walking times for each student to each school. Also geocodes addresses

Description

getDistanceMatrix Calls the Google API to get walkig times in minutes for each student to each school and also geocodes each address. Requires a Google key. Google allows 2500 free queries per day. The function creates an Excel spreadsheet "enrollDFwDist-(time stamp).xlsx containing all the info in the input object (enrollDF) plus six new columns: the distance to each school (in minutes), the latitude and the longitude of each student address

Usage

getDistanceMatrix(enrollDF)

Arguments

enrollDF

a data frame containing the nx4 distance matrix


j-d-miller/d96assign documentation built on March 31, 2022, 7:36 a.m.