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?


I understood that, just how does my iPhone specifically find “Ottawa” specifically when 613 only identifies Eastern Ontario?
There are some charts that list prefixes by area code and what areas they traditionally mean
For example for area code 613 https://wetmore.ca/TelephonePrefixes.pl?A=613
I edited a little onto my original reply about the 2nd 3 digits of a North American phone number.
The second group of three identifies the city (kind of)