https://github.com/leask/china-districts
Make JSON Tree of China Districts
https://github.com/leask/china-districts
Last synced: about 1 month ago
JSON representation
Make JSON Tree of China Districts
- Host: GitHub
- URL: https://github.com/leask/china-districts
- Owner: Leask
- License: mit
- Created: 2014-08-29T02:14:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-27T14:33:17.000Z (almost 10 years ago)
- Last Synced: 2025-03-26T09:01:47.312Z (about 2 months ago)
- Language: JavaScript
- Size: 252 KB
- Stars: 52
- Watchers: 4
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
China-Districts
===============Make JSON Tree of China Districts.
https://www.npmjs.com/package/china-districts
## Node Model
```
{
id : [string],
name : [string],
districts : [array]
}
```## How to use?
```
npm install china-districts
var chinaDistricts = require('china-districts');
console.log(chinaDistricts);
```## Contribution
```
$ git clone https://github.com/Leask/China-Districts.git
# update the source data in districts.txt
$ node make.js
$ ls districts.js districts.json districts.min.json
# pull request
```## Data Source
- 数据来源:[中华人民共和国国家统计局](http://www.stats.gov.cn/tjsj/tjbz/xzqhdm/)
- 当前版本:[最新县及县以上行政区划代码(截止2014年10月31日)](http://www.stats.gov.cn/tjsj/tjbz/xzqhdm/201504/t20150415_712722.html)