google_nearestRoads {googleway} | R Documentation |
Nearest Roads
Description
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.
Usage
google_nearestRoads(
df_points,
lat = NULL,
lon = NULL,
simplify = TRUE,
curl_proxy = NULL,
key = get_api_key("roads")
)
Arguments
df_points |
|
lat |
string specifying the column of |
lon |
string specifying the column of |
simplify |
|
curl_proxy |
a curl proxy object |
key |
|
See Also
Examples
## 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)
[Package googleway version 2.7.8 Index]