transbigdata.getadmin
- transbigdata.getadmin(keyword, ak, jscode='', subdistricts=False, timeout=20)
Input the keyword and the Amap ak. The output is the GIS file of the administrative boundary (Only in China)
- Parameters:
keywords (str) – The keyword. It might be the city name such as Shengzheng, or the administrative code such as 440500
ak (str) – Amap accesstoken
jscode (jscode) – Amap safty code
subdistricts (bool) – Whether to output the information of the administrative district boundary
timeout (number) – Timeout of data fetching
- Returns:
admin (GeoDataFrame) – Administrative district(WGS84)
districts (DataFrame) – The information of subdistricts. This can be used to further get the boundary of lower level districts