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

地址选择崩溃 #261

Closed
1825492258 opened this issue Aug 26, 2021 · 3 comments
Closed

地址选择崩溃 #261

1825492258 opened this issue Aug 26, 2021 · 3 comments

Comments

@1825492258
Copy link

选择湖北省 天门市 由于后面没有区 点击会崩溃

@liyujiang-gzu
Copy link
Member

选择湖北省 天门市 由于后面没有区 点击会崩溃

你是用的自定义的数据吧?解析的时候注意省市区的第二三级都可能没有数据

@1825492258
Copy link
Author

是的,已经处理了。

@xiangyuecn
Copy link

可以参考 #332 更新获取到最新版的省市区数据,对于这些 省直辖县级市、直筒子市 都进行了很好的处理,全部数据都是3级结构,比如:湖北-天门,是没有区级的,会填充一个同名的区级,变成:湖北-天门-天门

建议开发当天转换得到新文件,这样就能使用到最新版本数据,所使用的数据源是我的开源库 https://github.com/xiangyuecn/AreaCity-JsSpider-StatsGov ,基本上月更,除了省市区乡镇四级区划外,还有坐标边界数据。欢迎用 #332 的代码在线转成china_address.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants