I created a parser for telephone numbers to get information based only in the number.
I started this project cause I will need this kind of info in the future. Right now, It’s based on a regex parser and I created a parser for every sovereign country. I removed territories under other countries sovereignty, even if it has it’s own international calling code.
Help is needed on doing the area codes for all countries. Everyone can help, if not coding, you can help us finding official information of how the numbering plan for a given country works. Github Hex
I’ven seen libphonenumber when I was searching for something that could fit my use case, but it doesnt.
I needed to identify the country solely based on the number, but the demos for libphonenumber shows that it is focused on formatting and need to specify the country.
There is an erlang/elixir wrapper for libphonenumber:
I didn’t know that. I guess I tried it fully formated, with spaces and parenthesis. I will keep the package that I’m maintaining, if it is useful for more people I’ll keep it alive.