行政区划四级:省级、市级、县级、镇级,包括港澳台
行政区划代码,数据已更新至:2022 年 12 月 29 日
港澳台数据来自阿里云控制台新增地址,接口
文件 | 非压缩 | 压缩版 |
---|---|---|
省级 | province.json | province.min.json |
市级 | city.json | city.min.json |
县级 | county.json | county.min.json |
镇级 | town.json | town.min.json |
港澳台1级 | hmt_1.json | hmt_1.min.json |
港澳台2级 | hmt_2.json | hmt_2.min.json |
港澳台3级 | hmt_3.json | hmt_3.min.json |
总数据 | tree.json | tree.min.json |
下载:git clone https://github.com/liuguanhua/china-province-city.git
获取数据:
cd china-province-city
先删除缓存:rm -f temp/*
yarn install
yarn start
生成:
yarn build
压缩:
yarn compress
- 个人主页: http://lgh930.com
- Github:@liuguanhua
有什么好的想法、建议、问题和功能需求,欢迎 👋 提出。如果觉得这个项目不错或者对您有帮助,👏 赞一 个 ⭐️❤️!