Description Usage Arguments Details Value Examples
View source: R/reverseGeocode.R
Get the address associated with a pair of coordinates using the Google Maps API
1 | reverseGeocode(crd, result = 1)
|
crd |
Input coordinates vector (longitude and latitude). |
result |
Which search result to use. The default is the first result. |
pause.time |
Amount of time in seconds to wait after a request (if performing multiple requests in a loop). |
By default the function returns the first result from the search. This can be
checked for accuracy by looking at the address.compoents
result. If this is incorrect, the second result can be tried using
result = 2
address |
The resulting address. |
address.components |
A |
1 | reverseGeocode(c(-73.98691, 40.75546))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.