Description Usage Arguments Value
View source: R/distancematrix.R
Get drive time from Distance Matrix API.
1 2 | getGoogleDist(start, end, model, day, time, latlng = FALSE,
key = "AIzaSyCp3l9A5PKPVupslJqOFmO55kg50JYd85Q")
|
start |
A start address or lat,lng coordinate set. |
end |
An end address or lat,lng coordinate set. |
model |
A distance matrix API traffic model. |
day |
The day on which to base drive time estimates. |
time |
The time of day on which to base drive time estimates. |
latlng |
Binary indicating whether start/end are lat,lng coordinates. |
key |
A rgeistered Google Maps Distance Matrix API key. |
A Google Maps drive time estimate in minutes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.