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 locups. The repositmented in Go using binary search for efficient lops. The reposition im. 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
聯繫作者
加作者微信