Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/modood/administrative-divisions-of-china
中华人民共和国行政区划:省级(省份)、 地级(城市)、 县级(区县)、 乡级(乡镇街道)、 村级(村委会居委会) ,中国省市区镇村二级三级四级五级联动地址数据。
https://github.com/modood/administrative-divisions-of-china
address administrative-divisions area china city csv json nodejs province street
Last synced: 11 days ago
JSON representation
中华人民共和国行政区划:省级(省份)、 地级(城市)、 县级(区县)、 乡级(乡镇街道)、 村级(村委会居委会) ,中国省市区镇村二级三级四级五级联动地址数据。
- Host: GitHub
- URL: https://github.com/modood/administrative-divisions-of-china
- Owner: modood
- License: wtfpl
- Created: 2016-10-08T08:59:27.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-09-13T01:37:45.000Z (about 1 year ago)
- Last Synced: 2024-10-19T05:29:06.883Z (21 days ago)
- Topics: address, administrative-divisions, area, china, city, csv, json, nodejs, province, street
- Language: JavaScript
- Homepage:
- Size: 159 MB
- Stars: 18,501
- Watchers: 389
- Forks: 7,035
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Administrative-divisions-of-China
[![code style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
[![npm](https://img.shields.io/npm/v/china-division.svg)](https://www.npmjs.com/package/china-division)
[![downloads](https://img.shields.io/npm/dt/china-division.svg)](https://www.npmjs.com/package/china-division)
[![license](https://img.shields.io/badge/license-WTFPL%20--%20Do%20What%20the%20Fuck%20You%20Want%20to%20Public%20License-green.svg)](https://raw.githubusercontent.com/modood/Administrative-divisions-of-China/master/LICENSE)中华人民共和国行政区划(五级):省级、地级、县级、乡级和村级。
## 数据来源
* 国家统计局:
* [中华人民共和国国家统计局-统计用区划和城乡划分代码](http://www.stats.gov.cn/sj/tjbz/qhdm/)
* [中华人民共和国国家统计局-统计用区划代码和城乡划分代码编制规则](http://www.stats.gov.cn/sj/tjbz/gjtjbz/202302/t20230213_1902741.html)
* 本项目已更新至:
* [2023年统计用区划代码和城乡划分代码(截止时间:2023-06-30,发布时间:2023-09-11)](http://www.stats.gov.cn/sj/tjbz/tjyqhdmhcxhfdm/2023/index.html)## 数据下载
| 文件列表 | JSON | CSV |
|:-----------------------------|:-----|:----|
| 省级(省份、直辖市、自治区) | [provinces.json](https://github.com/modood/Administrative-divisions-of-China/blob/master/dist/provinces.json) | [provinces.csv](https://github.com/modood/Administrative-divisions-of-China/blob/master/dist/provinces.csv) |
| 地级(城市) | [cities.json](https://github.com/modood/Administrative-divisions-of-China/blob/master/dist/cities.json) | [cities.csv](https://github.com/modood/Administrative-divisions-of-China/blob/master/dist/cities.csv) |
| 县级(区县) | [areas.json](https://github.com/modood/Administrative-divisions-of-China/blob/master/dist/areas.json) | [areas.csv](https://github.com/modood/Administrative-divisions-of-China/blob/master/dist/areas.csv) |
| 乡级(乡镇、街道) | [streets.json](https://github.com/modood/Administrative-divisions-of-China/blob/master/dist/streets.json) | [streets.csv](https://github.com/modood/Administrative-divisions-of-China/blob/master/dist/streets.csv) |
| 村级(村委会、居委会) | [villages.json](https://github.com/modood/Administrative-divisions-of-China/blob/master/dist/villages.json) | [villages.csv](https://github.com/modood/Administrative-divisions-of-China/blob/master/dist/villages.csv) || 文件列表 | 普通 | 带编码 |
|:--------------------------------------------|:-----|:-------|
| “省份、城市” 二级联动数据 | [pc.json](https://github.com/modood/Administrative-divisions-of-China/blob/master/dist/pc.json) | [pc-code.json](https://github.com/modood/Administrative-divisions-of-China/blob/master/dist/pc-code.json) |
| “省份、城市、区县” 三级联动数据 | [pca.json](https://github.com/modood/Administrative-divisions-of-China/blob/master/dist/pca.json) | [pca-code.json](https://github.com/modood/Administrative-divisions-of-China/blob/master/dist/pca-code.json) |
| “省份、城市、区县、乡镇” 四级联动数据 | [pcas.json](https://github.com/modood/Administrative-divisions-of-China/blob/master/dist/pcas.json) | [pcas-code.json](https://github.com/modood/Administrative-divisions-of-China/blob/master/dist/pcas-code.json) |
| “省份、城市、区县、乡镇、村庄” 五级联动数据 | - | - |> 提示:需要打包下载全部文件,请看 [Releases](https://github.com/modood/Administrative-divisions-of-China/releases)。
## 数据库支持
目前本项目数据保存在 sqlite3,数据文件下载:[data.sqlite](https://github.com/modood/Administrative-divisions-of-China/blob/master/dist/data.sqlite)。
可以自己将数据迁移到其他数据库管理系统中(MySQL, Oracle, MSSQL 等)。
**省级数据预览**
| code | name |
|:-----|:---------------|
| 13 | 河北省 |
| 14 | 山西省 |
| 15 | 内蒙古自治区 |
| 45 | 广西壮族自治区 |**地级数据预览**
| code | name | provinceCode |
|:-----|:-----------|:-------------|
| 1301 | 石家庄市 | 13 |
| 1401 | 太原市 | 14 |
| 1525 | 锡林郭勒盟 | 15 |
| 4503 | 桂林市 | 45 |**县级数据预览**
| code | name | cityCode | provinceCode |
|:-------|:---------|:---------|:-------------|
| 130111 | 栾城区 | 1301 | 13 |
| 140121 | 清徐县 | 1401 | 14 |
| 152527 | 太仆寺旗 | 1525 | 15 |
| 450305 | 七星区 | 4503 | 45 |**乡级数据预览**
| code | name | areaCode | cityCode | provinceCode |
|:----------|:---------------|:---------|:---------|:-------------|
| 130111200 | 南高乡 | 130111 | 1301 | 13 |
| 140121102 | 东于镇 | 140121 | 1401 | 14 |
| 152527201 | 贡宝拉格苏木 | 152527 | 1525 | 15 |
| 450305004 | 漓东街道办事处 | 450305 | 4503 | 45 |**村级数据预览**
| code | name | streetCode | areaCode | cityCode | provinceCode |
|:-------------|:---------------|:-----------|:---------|:---------|:-------------|
| 130111200201 | 南高村委会 | 130111200 | 130111 | 1301 | 13 |
| 140121102001 | 东于社区居委会 | 140121102 | 140121 | 1401 | 14 |
| 152527201206 | 敦达乌苏嘎查 | 152527201 | 152527 | 1525 | 15 |
| 450305004006 | 横塘社区 | 450305004 | 450305 | 4503 | 45 |