Skip to content

reid3290/chinese_administrative_division

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chinese_administrative_division

中国行政区划数据:省、市、区

Usage

const chinese = require('chinese_administrative_division');
chinese.getAll()
    .then(data => {
        console.dir(data);
    })
    .catch(error => {
        console.error(error);
    })

数据格式

  • provinces - 省份数据,包含namecode两个字段
  • cities - 城市数据,包含namecodeparent_code三个字段
  • districts - 区县数据,包含namecodeparent_code三个字段

License

This repo is released under the MIT License.

About

中国行政区划数据

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published