Description Usage Arguments Details Value Examples
View source: R/geocodeAddress.R
Get the coordinates of an address using the Google Maps API.
1 | geocodeAddress(address, result = 1, pause.time = 0.02)
|
address |
The address to search for as a string, e.g. |
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
component in the
result. If this is incorrect, the second result can be tried using
result = 2
crd |
A vector of the longitude and latitude of the address. |
address |
A |
1 2 3 | geocodeAddress("Time Square, New York City")
geocodeAddress("Boston")
geocodeAddress("Boston", result = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.