extractCoord | R Documentation |
Extract coordinate from location request
extractCoord(res)
res |
Required. |
Returns a data.table which extracts detailed coordinate information from results of getCoord. See https://lbs.amap.com/api/webservice/guide/api/georegeo for more information.
getCoord
## Not run:
library(dplyr)
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 XML
getCoord("IFS Chengdu", output = "XML") |>
# extract geocode regions as a data.table
extractCoord()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.