81 Star 638 Fork 159

netnr / zoning

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

zoning

中华人民共和国行政区划:省级、地级、县级、乡级和村级

Demo: https://ss.netnr.com/zoning

变更日志

统计用区划和城乡划分代码
http://www.stats.gov.cn/sj/tjbz/qhdm/

统计数据截止 2023-06-30 于 2023-09-11 发布
http://www.stats.gov.cn/sj/tjbz/tjyqhdmhcxhfdm/2023/

共 5 级

0.json 深度 1、2、3
1101.json 深度 4、5
6590.json 深度 4、5

stats-zoning-3.json 爬虫三级总数据 就是 0.json
stats-zoning-4.json 爬虫四级总数据
stats-zoning-5.json 爬虫五级总数据

npm install zoningjs

列信息

字段 类型 说明
id string 区划代码,唯一
txt string 名称
pid string 父级区划代码
sid string 简短区划代码,唯一
spid string 简短父级区划代码
ct string 城乡分类代码
num int 同级排序
leaf int 是叶节点(1:是;2:否)
deep int 爬取深度

爬取源码 (路径可能会失效,但源码始终在该账号的某个项目中)
https://github.com/netnr/np/tree/main/src/Netnr.P/Netnr.ClientApp/ClientSpider

联系打赏

MIT License Copyright (c) 2018 netnr Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

中华人民共和国行政区划:省级(省份直辖市自治区)、 地级(城市)、 县级(区县)、 乡级(乡镇街道)、 村级(村委会居委会) 展开 收起
JavaScript
MIT
取消

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/netnr/zoning.git
git@gitee.com:netnr/zoning.git
netnr
zoning
zoning
main

搜索帮助

14c37bed 8189591 565d56ea 8189591