google_nearestRoads | R Documentation |
Takes up to 100 independent coordinates and returns the closest road segment for each point. The points passed do not need to be part of a continuous path.
google_nearestRoads(
df_points,
lat = NULL,
lon = NULL,
simplify = TRUE,
curl_proxy = NULL,
key = get_api_key("roads")
)
df_points |
|
lat |
string specifying the column of |
lon |
string specifying the column of |
simplify |
|
curl_proxy |
a curl proxy object |
key |
|
google_snapToRoads
## Not run:
key <- 'your_api_key'
df_points <- read.table(text = "lat lon
60.1707 24.9426
60.1708 24.9424
60.1709 24.9423", header = T)
google_nearestRoads(df_points, key = key)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.