Skip to content

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

Description

@IceMimosa

实现思路

工具类输入

1. 地址数据网址

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

2. 地址层级

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

3. 文件格式

json/pb...

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions