Crossposted from https://lemmy.blahaj.zone/post/48779421
I’m writing a program that can find info about a phone number. One problem appears to be that Google’s phone number library doesn’t provide enough info. For instance, take this number: +1 (613) 745-1576. My iPhone correctly says “Ottawa, Ontario, Canada”, while Google’s library doesn’t return the city? How does my iPhone pick this up but not Google’s own library? Is this provided by cell carriers? Is it something with the 745 block? If so, where can I find this info?


Good luck with that. Where I live carriers allow you to relocate your landline number to a new address when you move out nowadays, so this might be an issue to keep up to date.
I would obviously add a disclaimer that the location provided may not represent the caller’s current location as it is where the number is registered.
Yeah, today after moving to fully digital landlines as well there is no need to keep numbers tied up to geographical locations.
Still depend on your country rules tough. In mine, landlines all start with a 0 (zero) followed by a geographical prefix, so that will be unchanged (but can be spoofed). Mobiles start with a 3 instead, and those have no geographical location at all. And so on.