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.
Mobile phone number location information database, mobile phone number location query
This may be the latest and most complete information database of mobile phone number locations in China that can be found on github.
Based on GO language implementation, using binary search method.
phone.dat file format
Install and use
vi test.go
go run test.go
Quick to use
phonedata in the cmd directory is a terminal program for querying the location information of mobile phone numbers from the command line.
stdout:
Performance testing
go version go1.17.6 windows/amd64
I only want the csv text file of phone.dat?
good. Download address
https://git.oschina.net/oss/phonedata/attach_files
Implemented in other languages
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
safety guarantee
The location information of mobile phone numbers is collected and organized through public data on the Internet.
I do not make any guarantee that the mobile phone number location information is absolutely correct. Therefore, please proofread and test it yourself before using it in a production environment.
Customer case
grateful
@ls0f https://github.com/ls0f
@zhengji https://github.com/zheng-ji/gophone
Contact the author
Add the author on WeChat