AreaCity-JsSpider-StatsGov is a Chinese administrative division data aggregator that collects and enriches province, city, district, and township-level geographic information with pinyin romanization, coordinates, and boundary polygons.
The tool solves the problem of obtaining comprehensive, up-to-date Chinese administrative boundary data from fragmented official sources. It aggregates data from the Ministry of Civil Affairs, the National Gazetteer, the Statistics Bureau, and mapping services including Amap and Tencent Maps. The project includes browser-based JavaScript scraping code that collects this information and provides it in multiple formats: CSV files for direct use, JSON for programmatic access, and conversion tools that transform the data into SQL, Shapefile, and GeoJSON formats suitable for database import or GIS applications.
Developers should adopt this tool if they need hierarchical Chinese administrative divisions for applications like address selection dropdowns, geographic visualization, or location-based services. The project suits mapping applications, e-commerce platforms requiring address hierarchies, and any system needing to query which city or district contains a given coordinate. The tool provides both three-level data (province-city-district) and four-level data (adding townships), with an online preview interface for testing before integration. A companion high-performance query tool is available for rapid coordinate-to-location lookups.
The project maintains active data synchronization with official sources, incorporating updates from the National Gazetteer and mapping service APIs. Development includes ongoing administrative boundary changes, such as recent municipal reorganizations in Chongqing. The tool offers multiple access routes and mirrors to handle network constraints in different regions. Supplementary tools are provided for format conversion and geographic coordinate system transformation, extending the core dataset's utility across different technology stacks and use cases.