Get an individual data.table of Subordinate Administrative Regions from location
getAdmin.individual(
keywords,
key = NULL,
subdistrict = NULL,
page = NULL,
offset = NULL,
extensions = NULL,
filter = NULL,
callback = NULL,
output = "data.table",
keep_bad_request = TRUE,
...
)
Required. Search keywords. Rules: Country/Region, Province/State, City, County/District, Town, Country, Road, Number, Room, Building.
Optional. Amap Key. Applied from 'AutoNavi' Map API official websitehttps://lbs.amap.com/dev/
Optional. Subordinate Administrative Level. Display level of subordinate administrative regions. Available value: 0,1,2,3. `0` do not return subordinate administrative regions. `1` return first one subordinate administrative regions. `2` return first two subordinate administrative regions. `3` return first three subordinate administrative regions.
Optional. Which page to return. Each time the outmost layer will return a maximum of 20 records. If the limit is exceeded, please request the next page of records with the page argument.
Optional. Maximum records per page. Maximum value is 20.
Optional. Return results controller. `base`: does not return the coordinates of the administrative district boundary. `all`: returns only the boundary value of the current query district, not the boundary value of the child node.
Optional. Filter administrative regions. Filtering by designated administrative divisions, which returns information only for the province/municipality. It is strongly recommended to fill in this parameter in order to ensure the correct records.
Optional. Callback Function. The value of callback is the customized function. Only available with JSON output. If you don't understand, it means you don't need it, just like me.
Optional. Output Data Structure. Support JSON, XML and data.table. The default value is data.table.
Optional. Keep Bad Request to avoid breaking a workflow, especially meaningful in a batch request
Optional. For compatibility only
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.