View source: R/getDistMatrix.R
getDistanceMatrix | R Documentation |
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
getDistanceMatrix(enrollDF)
enrollDF |
a data frame containing the nx4 distance matrix |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.