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

region.dat 地址偏旧,升级到国家标准地址2020版本 #163

Closed
IceMimosa opened this issue Sep 26, 2021 · 13 comments · Fixed by #172
Closed

region.dat 地址偏旧,升级到国家标准地址2020版本 #163

IceMimosa opened this issue Sep 26, 2021 · 13 comments · Fixed by #172
Labels
dependencies Pull requests that update a dependency file good first issue Good for newcomers help wanted Extra attention is needed

Comments

@IceMimosa
Copy link
Member

IceMimosa commented Sep 26, 2021

2020版本国标地址库:http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2020/

思路:采用非覆盖方式,与库中的旧地址进行合并。

fix #162

@IceMimosa IceMimosa added dependencies Pull requests that update a dependency file good first issue Good for newcomers help wanted Extra attention is needed labels Sep 26, 2021
@TsLenMo
Copy link

TsLenMo commented Mar 29, 2022

我这里有一份全覆盖的 21版国标库,希望能对项目有所帮助
https://cloud.189.cn/web/share?code=yUBjQfYJzQ7n(访问码:9c9w)

@IceMimosa
Copy link
Member Author

IceMimosa commented Mar 29, 2022

@TsLenMo 十分感谢,我瞅瞅。感觉有点大,是按照项目的方式生成的region.dat么?

@IceMimosa
Copy link
Member Author

我这里有一份全覆盖的 21版国标库,希望能对项目有所帮助 https://cloud.189.cn/web/share?code=yUBjQfYJzQ7n(访问码:9c9w)

这个文件alias的处理稍微有点问题,我这边借鉴处理下,太感谢了。考虑文件太大,准备暴露手动传参的方式给调用方使用。

@TsLenMo
Copy link

TsLenMo commented Mar 30, 2022

@TsLenMo 十分感谢,我瞅瞅。感觉有点大,是按照项目的方式生成的region.dat么?

是的,是根据项目方式生成的

@linweijiang
Copy link

hi~,请问有优化alias了吗,我发现 @TsLenMo 提供的alias稍微跟解析代码的逻辑不是很匹配得上。

@TsLenMo
Copy link

TsLenMo commented May 18, 2022

hi~,请问有优化alias了吗,我发现 @TsLenMo 提供的alias稍微跟解析代码的逻辑不是很匹配得上。

目前我没有优化,不知道作者是否有优化过。

@linweijiang
Copy link

别名问题优化了一版,我本地测没问题,大家可以测测看 @IceMimosa @TsLenMo
https://cloud.189.cn/web/share?code=UJVBBvARRnaa(访问码:0uho)

@TsLenMo
Copy link

TsLenMo commented May 18, 2022

别名问题优化了一版,我本地测没问题,大家可以测测看 @IceMimosa @TsLenMo https://cloud.189.cn/web/share?code=UJVBBvARRnaa(访问码:0uho)

谢谢,你这个包好小。

@linweijiang
Copy link

别名问题优化了一版,我本地测没问题,大家可以测测看 @IceMimosa @TsLenMo https://cloud.189.cn/web/share?code=UJVBBvARRnaa(访问码:0uho)

谢谢,你这个包好小。

跟原有版本一样,只保留了4级地址信息,包就小了~

@IceMimosa
Copy link
Member Author

@linweijiang 牛逼了。抱歉比较懒,一直没啥时间。。😂

@IceMimosa IceMimosa linked a pull request May 18, 2022 that will close this issue
@IceMimosa
Copy link
Member Author

@TsLenMo @linweijiang 感谢两位,最新版本已支持自定义的地址库参数设置。

@zui-S
Copy link

zui-S commented Mar 23, 2023

请问这个dat地址文件是怎么生成的?

@liucx1201
Copy link

别名问题优化了一个版本,我本地测没问题,大家可以测测看看@IceMimosa @TsLenMo https://cloud.189.cn/web/share?code=UJVBBvARRnaa(访问码:0uho)

谢谢,你这个包好小。

跟原有版本一样,只保留了4级地址信息,包就小了~

@linweijiang 大佬,方便提供优化后的sql数据吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants