/phonenumber-country-lookup

Take a phone number with full international dialling codes, and return its city + area

Primary LanguageHTMLGNU General Public License v3.0GPL-3.0

phonenumber-country-lookup

Take a phone number with full international dialling codes, and return its city + area

About

Using publicly available telephone number datasets and restructuring them a little to reduce search time, the geographic registered location of a telephone number can be provided without querying other servers.

Coupled with jackocnr's custom build of libphonenumber, some cool stuff is possible.

NOTE: No number validation is performed - only best effort lookups against what is provided. If validation, formatting, etc is what you want, please look at jackocnr's work or libphonenumber

The lookup script is less than 1k (minified), and the number datasets are around 637k.

Demo

Clone the repo and launch demo.html in your browser!

License

GNU GPLv3

Copyright (c) 2017 Lucep