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

编写一个基于国家地址库生成dat文件的工具类 #197

Open
IceMimosa opened this issue Nov 7, 2023 · 1 comment
Open

编写一个基于国家地址库生成dat文件的工具类 #197

IceMimosa opened this issue Nov 7, 2023 · 1 comment
Labels
good first issue Good for newcomers

Comments

@IceMimosa
Copy link
Member

实现思路

工具类输入

1. 地址数据网址

比如:http://www.stats.gov.cn/sj/tjbz/tjyqhdmhcxhfdm/2023/,或者类参数固定死2022、2023等等的输入。
如果有接口直接调用更好,没有的话可以用jsoup对页面进行爬虫

2. 地址层级

由于层级越深,生成的最终文件肯定越大。所以需要限制下地址的层级,比如1:省,2:市,3:区,4:街道/镇,5:居委会

3. 文件格式

json/pb...

@IceMimosa IceMimosa added the good first issue Good for newcomers label Nov 7, 2023
@liucx1201
Copy link

膜拜大佬,期待

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants