Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

没有广东省中山市下属街道信息 #21

Open
xiaozzzi opened this issue May 10, 2021 · 14 comments
Open

没有广东省中山市下属街道信息 #21

xiaozzzi opened this issue May 10, 2021 · 14 comments

Comments

@xiaozzzi
Copy link

No description provided.

@jaywcjlove
Copy link
Member

@JasmineXiaozzz 看到问题了

省市区一直是获取的这里的官方数据,但是它一直没有更新

@jaywcjlove
Copy link
Member

东莞市中山市三沙市儋州市嘉峪关市 下面直接是街道,不是 ,导致街道数据没有下来。

@jaywcjlove
Copy link
Member

层级数据只包含省市区

@xiaozzzi
Copy link
Author

东莞市,中山市,三沙市,儋州市,嘉峪关市的镇和街道信息在town.json中也没有,是否考虑更新呢

@jaywcjlove
Copy link
Member

@JasmineXiaozzz 不清楚下面数据具体放入什么地方

✔ <中山市>数据生成完成!24 http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2020/44/4420.html

[
  {code: '442000001000', name: '石岐街道', province: '44', city: '20', area: '', town: '001000'},
  {code: '442000002000', name: '东区街道', province: '44', city: '20', area: '', town: '002000'},
  {code: '442000003000', name: '中山港街道', province: '44', city: '20', area: '', town: '003000'},
  {code: '442000004000', name: '西区街道', province: '44', city: '20', area: '', town: '004000'},
  {code: '442000005000', name: '南区街道', province: '44', city: '20', area: '', town: '005000'},
  {code: '442000006000', name: '五桂山街道', province: '44', city: '20', area: '', town: '006000'},
  {code: '442000100000', name: '小榄镇', province: '44', city: '20', area: '', town: '100000'},
  {code: '442000101000', name: '黄圃镇', province: '44', city: '20', area: '', town: '101000'},
  {code: '442000102000', name: '民众镇', province: '44', city: '20', area: '', town: '102000'},
  {code: '442000103000', name: '东凤镇', province: '44', city: '20', area: '', town: '103000'},
  {code: '442000104000', name: '东升镇', province: '44', city: '20', area: '', town: '104000'},
  {code: '442000105000', name: '古镇镇', province: '44', city: '20', area: '', town: '105000'},
  {code: '442000106000', name: '沙溪镇', province: '44', city: '20', area: '', town: '106000'},
  {code: '442000107000', name: '坦洲镇', province: '44', city: '20', area: '', town: '107000'},
  {code: '442000108000', name: '港口镇', province: '44', city: '20', area: '', town: '108000'},
  {code: '442000109000', name: '三角镇', province: '44', city: '20', area: '', town: '109000'},
  {code: '442000110000', name: '横栏镇', province: '44', city: '20', area: '', town: '110000'},
  {code: '442000111000', name: '南头镇', province: '44', city: '20', area: '', town: '111000'},
  {code: '442000112000', name: '阜沙镇', province: '44', city: '20', area: '', town: '112000'},
  {code: '442000113000', name: '南朗镇', province: '44', city: '20', area: '', town: '113000'},
  {code: '442000114000', name: '三乡镇', province: '44', city: '20', area: '', town: '114000'},
  {code: '442000115000', name: '板芙镇', province: '44', city: '20', area: '', town: '115000'},
  {code: '442000116000', name: '大涌镇', province: '44', city: '20', area: '', town: '116000'},
  {code: '442000117000', name: '神湾镇', province: '44', city: '20', area: '', town: '117000'}
]

✔ <东莞市>数据生成完成!35 http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2020/44/4419.html

[
  {code: '441900003000', name: '东城街道', province: '44', city: '19', area: '', town: '003000'},
  {code: '441900004000', name: '南城街道', province: '44', city: '19', area: '', town: '004000'},
  {code: '441900005000', name: '万江街道', province: '44', city: '19', area: '', town: '005000'},
  {code: '441900006000', name: '莞城街道', province: '44', city: '19', area: '', town: '006000'},
  {code: '441900101000', name: '石碣镇', province: '44', city: '19', area: '', town: '101000'},
  {code: '441900102000', name: '石龙镇', province: '44', city: '19', area: '', town: '102000'},
  {code: '441900103000', name: '茶山镇', province: '44', city: '19', area: '', town: '103000'},
  {code: '441900104000', name: '石排镇', province: '44', city: '19', area: '', town: '104000'},
  {code: '441900105000', name: '企石镇', province: '44', city: '19', area: '', town: '105000'},
  {code: '441900106000', name: '横沥镇', province: '44', city: '19', area: '', town: '106000'},
  {code: '441900107000', name: '桥头镇', province: '44', city: '19', area: '', town: '107000'},
  {code: '441900108000', name: '谢岗镇', province: '44', city: '19', area: '', town: '108000'},
  {code: '441900109000', name: '东坑镇', province: '44', city: '19', area: '', town: '109000'},
  {code: '441900110000', name: '常平镇', province: '44', city: '19', area: '', town: '110000'},
  {code: '441900111000', name: '寮步镇', province: '44', city: '19', area: '', town: '111000'},
  {code: '441900112000', name: '樟木头镇', province: '44', city: '19', area: '', town: '112000'},
  {code: '441900113000', name: '大朗镇', province: '44', city: '19', area: '', town: '113000'},
  {code: '441900114000', name: '黄江镇', province: '44', city: '19', area: '', town: '114000'},
  {code: '441900115000', name: '清溪镇', province: '44', city: '19', area: '', town: '115000'},
  {code: '441900116000', name: '塘厦镇', province: '44', city: '19', area: '', town: '116000'},
  {code: '441900117000', name: '凤岗镇', province: '44', city: '19', area: '', town: '117000'},
  {code: '441900118000', name: '大岭山镇', province: '44', city: '19', area: '', town: '118000'},
  {code: '441900119000', name: '长安镇', province: '44', city: '19', area: '', town: '119000'},
  {code: '441900121000', name: '虎门镇', province: '44', city: '19', area: '', town: '121000'},
  {code: '441900122000', name: '厚街镇', province: '44', city: '19', area: '', town: '122000'},
  {code: '441900123000', name: '沙田镇', province: '44', city: '19', area: '', town: '123000'},
  {code: '441900124000', name: '道滘镇', province: '44', city: '19', area: '', town: '124000'},
  {code: '441900125000', name: '洪梅镇', province: '44', city: '19', area: '', town: '125000'},
  {code: '441900126000', name: '麻涌镇', province: '44', city: '19', area: '', town: '126000'},
  {code: '441900127000', name: '望牛墩镇', province: '44', city: '19', area: '', town: '127000'},
  {code: '441900128000', name: '中堂镇', province: '44', city: '19', area: '', town: '128000'},
  {code: '441900129000', name: '高埗镇', province: '44', city: '19', area: '', town: '129000'},
  {code: '441900401000', name: '松山湖', province: '44', city: '19', area: '', town: '401000'},
  {code: '441900402000', name: '东莞港', province: '44', city: '19', area: '', town: '402000'},
  {code: '441900403000', name: '东莞生态园', province: '44', city: '19', area: '', town: '403000'}
]

✔ <儋州市>数据生成完成!18 http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2020/46/4604.html

[
  {code: '460400100000', name: '那大镇', province: '46', city: '04', area: '', town: '100000'},
  {code: '460400101000', name: '和庆镇', province: '46', city: '04', area: '', town: '101000'},
  {code: '460400102000', name: '南丰镇', province: '46', city: '04', area: '', town: '102000'},
  {code: '460400103000', name: '大成镇', province: '46', city: '04', area: '', town: '103000'},
  {code: '460400104000', name: '雅星镇', province: '46', city: '04', area: '', town: '104000'},
  {code: '460400105000', name: '兰洋镇', province: '46', city: '04', area: '', town: '105000'},
  {code: '460400106000', name: '光村镇', province: '46', city: '04', area: '', town: '106000'},
  {code: '460400107000', name: '木棠镇', province: '46', city: '04', area: '', town: '107000'},
  {code: '460400108000', name: '海头镇', province: '46', city: '04', area: '', town: '108000'},
  {code: '460400109000', name: '峨蔓镇', province: '46', city: '04', area: '', town: '109000'},
  {code: '460400111000', name: '王五镇', province: '46', city: '04', area: '', town: '111000'},
  {code: '460400112000', name: '白马井镇', province: '46', city: '04', area: '', town: '112000'},
  {code: '460400113000', name: '中和镇', province: '46', city: '04', area: '', town: '113000'},
  {code: '460400114000', name: '排浦镇', province: '46', city: '04', area: '', town: '114000'},
  {code: '460400115000', name: '东成镇', province: '46', city: '04', area: '', town: '115000'},
  {code: '460400116000', name: '新州镇', province: '46', city: '04', area: '', town: '116000'},
  {code: '460400499000', name: '洋浦经济开发区', province: '46', city: '04', area: '', town: '499000'},
  {code: '460400500000', name: '华南热作学院', province: '46', city: '04', area: '', town: '500000'}
]

@xiaozzzi
Copy link
Author

好的,非常感谢!

@slty7
Copy link

slty7 commented Jul 3, 2021

https://github.com/uiwjs/province-city-china
儋州市-->460400-->false
三沙市-->460300-->false
东莞市-->441900-->false
嘉峪关市-->620200-->false
中山市-->442000-->false

这几个数据都没有哦,我在弄层级关系的时候这几个地级市都没有,这边怎有在更新吗?在哪个地方?

@jaywcjlove
Copy link
Member

https://unpkg.com/province-city-china/dist/data.json

这个里面有,

层级数据里面也有

image

@slty7

@slty7
Copy link

slty7 commented Jul 3, 2021

这样不是断层了?中国地区这个编码做得有点蛋疼啊.直辖市和这几个区,如果要表达层级关系还得手动映射

@slty7
Copy link

slty7 commented Jul 3, 2021

我是根据你的这里data.sql来做的,北京几个还稍微好处理一点,主要到中间断层这里往下找没有,下面街道网上找要跳层级找

@jaywcjlove
Copy link
Member

这个编码是从权威的政府网站爬来的,纯纯的原本数据,不做改变的数据。

有些数据没有,可以生成新的文件

@slty7
Copy link

slty7 commented Jul 4, 2021

亲三沙市和嘉峪关市 的数据好像有变动,层级关系也变了你可以考虑更新一下

@slty7
Copy link

slty7 commented Jul 5, 2021

亲我还发现一个问题,这里的
image
这个层级如果没有下级你这个数据没上去吗data.sql中

@slty7
Copy link

slty7 commented Jul 6, 2021

我整理一份希望对大家有用,中山等层级不展示则用在编号前面加上一个负号(-)用来区别子层级关系,下面数据是sql文件下载下来之后吧jpg改成sql文件
t_address(到区级别比t_province少50+条数据)
t_address(市层级)
t_address(乡镇街道级别少100条数据)
t_province(补全北京省市层级,中山东莞市区确实层级)

@uiwjs uiwjs deleted a comment from xiangyuecn Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants