getAdmin | R Documentation |
Get Subordinate Administrative Regions from location
getAdmin(
keywords,
key = NULL,
subdistrict = NULL,
page = NULL,
offset = NULL,
extensions = NULL,
filter = NULL,
callback = NULL,
output = "data.table",
keep_bad_request = TRUE,
...
)
keywords |
Required. |
key |
Optional. |
subdistrict |
Optional. |
page |
Optional. |
offset |
Optional. |
extensions |
Optional. |
filter |
Optional. |
callback |
Optional. |
output |
Optional. |
keep_bad_request |
Optional. |
... |
Optional. |
Returns a JSON or XML of results containing detailed subordinate administrative region information. See https://lbs.amap.com/api/webservice/guide/api/district for more information.
extractAdmin
## Not run:
library(amapGeocode)
# Before the `getAdmin()` is executed,
# the token should be set by `option(amap_key = 'key')`
# or set by key argument in `getAdmin()`
# Get subordinate administrative regions as a data.table
getAdmin("Sichuan Province")
# Get subordinate administrative regions as a XML
getCoord("Sichuan Province", output = "XML")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.