This repository provides a comprehensive Chinese mobile phone number geolocation database, potentially the most up-to-date available on GitHub. It's implemented in Go using binary search for efficient lookups. The repository also includes command-line tools and links to implementations in other programming languages. Below are details on the data format, usage instructions, performance benchmarks, and more.
手机号码归属地信息库、手机号归属地查询
这可能是github上能找到的最新最全的中国境内手机号归属地信息库
基于GO语言实现,使用二分查找法。
phone.dat文件格式
安装使用
vi test.go
go run test.go
快速使用
cmd 目录下phonedata是一个命令行查询手机号归属地信息的终端程序。
stdout:
性能测试
go version go1.17.6 windows/amd64
我仅想要phone.dat的csv文本文件?
好。下载地址
https://git.oschina.net/oss/phonedata/attach_files
其他语言实现
python: https://github.com/ls0f/phone
php: https://github.com/shitoudev/phone-location , https://github.com/iwantofun/php_phone
php ext: https://github.com/jonnywang/phone
java: https://github.com/fengjiajie/phone-number-geo , https://github.com/EeeMt/phone-number-geo
Node: https://github.com/conzi/phone
C++: https://github.com/yanxijian/phonedata
C#: https://github.com/sndnvaps/Phonedata , https://github.com/rwecho/Phone.Dotnet.git (dotnet core)
Rust: https://github.com/vincascm/phonedata
Kotlin: https://github.com/bytebeats/phone-geo
Ruby: https://github.com/forwaard/phonedata
安全保证
手机号归属地信息是通过网上公开数据进行收集整理。
对手机号归属地信息数据的绝对正确,我不做任何保证。因此在生产环境使用前请您自行校对测试。
客户案例
感谢
@ls0f https://github.com/ls0f
@zhengji https://github.com/zheng-ji/gophone
联系作者
加作者微信