Location:

Administrative Area

District class

Query information about administrative area such as provinces, cities, districts and counties.

ConstructorDescription

nimap.service.District(DistrictOptions)

 

DistrictOptionsTypeDescription

subdist

Integer

Set the level of the lower administrative level (the administrative level includes: National, provincial/municipality, city, district/county, township/street multi-level data), optional range: 0-3. 0: no return to the lower administrative district; 1: return to the next administrative district; 2: return to the next two administrative districts ; 3: Return to the next three administrative districts.

boundary

Boolean

Set whether to return the boundary coordinates, the default is false.

 

MethodReturn ValueDescription

search(keyword,function(result))

By keyword Search for administrative areas.

setBoundary()

Set whether to return the boundary coordinates, true returns, false does not return.

setSubdist()

Set to return to the lower administrative area.

TOP