convertCoord | R Documentation |
This function is a wrap of coordinate convert API of AutoNavi Map Service.
While how to input the origin coordinate is sill unstable and
95% sure that it will have a breaking change in the future.
Please consider carefully if introduced this function in product environment.
convertCoord(
locations,
key = NULL,
coordsys = NULL,
sig = NULL,
output = "data.table",
keep_bad_request = TRUE,
...
)
locations |
Required. |
key |
Optional. |
coordsys |
Optional. |
sig |
Optional. |
output |
Optional. |
keep_bad_request |
Optional. |
... |
Optional. |
Returns a JSON, XML or data.table of results containing detailed geocode information. See https://lbs.amap.com/api/webservice/guide/api/convert for more information.
convertCoord
## Not run:
library(amapGeocode)
# Before the `convertCoord()` is executed,
# the token should be set by `option(amap_key = 'key')`
# or set by key argument in `convertCoord()`
# get result of converted coordinate system as a data.table
convertCoord("116.481499,39.990475", coordsys = "gps")
# get result of converted coordinate system as a XML
convertCoord("116.481499,39.990475", coordsys = "gps", to_table = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.