getCoord {amapGeocode} | R Documentation |
Get coordinate from location
Description
Get coordinate from location
Usage
getCoord(
address,
key = NULL,
city = NULL,
sig = NULL,
output = "data.table",
callback = NULL,
keep_bad_request = TRUE,
...
)
Arguments
address |
Required. |
key |
Optional. |
city |
Optional. |
sig |
Optional. |
output |
Optional. |
callback |
Optional. |
keep_bad_request |
Optional. |
... |
Optional. |
Value
Returns a JSON, XML or data.table of results containing detailed geocode information. See https://lbs.amap.com/api/webservice/guide/api/georegeo for more information.
See Also
Examples
## Not run:
library(amapGeocode)
# Before the `getCoord()` is executed,
# the token should be set by `option(amap_key = 'key')`
# or set by key argument in `getCoord()`
# Get geocode as a data.table
getCoord("IFS Chengdu")
# Get geocode as a XML
getCoord("IFS Chengdu", output = "XML")
## End(Not run)