china-districts
v0.0.5
Published
Make JSON Tree of China Districts
Downloads
5
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
- 数据来源:中华人民共和国国家统计局
- 当前版本:最新县及县以上行政区划代码(截止2014年10月31日)