| Post Reply | RetroFed Forum Forum Index » Ask Lemmy |
| Author | Message | ||
|---|---|---|---|
|
thesupertechie (she/they)
lemmy.blahaj.zone
thesupertechie@lemmy.blahaj.zone Joined: 2026-07-13 |
Crossposted from https://lemmy.blahaj.zone/post/48779421I'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? |
||
| 12 Original | |||
|
Kairos
lemmy.today
LodeMike@lemmy.today Joined: 2023-12-26 |
The area code. In this case 613. There's enough of them to correlate with a single area. |
||
| 3 | |||
|
thesupertechie (she/they)
lemmy.blahaj.zone
thesupertechie@lemmy.blahaj.zone Joined: 2026-07-13 |
The area code. In this case 613. There's enough of them to correlate with a single area.
What I don't understand is the fact that 613 is Eastern Ontario? How did my iPhone pick up "Ottawa"? |
||
| 4 | |||
|
zabadoh
ani.social
zabadoh@ani.social Joined: 2023-11-19 |
The first 3 digits, i.e. the ones between the parentheses in your example, is called the area code. Area codes in North America were divvied up by US and Canada, and they share the same phone number structure. Older area codes tend to have a "1" or "0" in the middle, but that convention went away, as devices like fax machines(!) and mobile phones proliferated, and more numbers were needed to handle the load. The various telephone companies coordinate through the North American Numbering Plan (NANP) A list of area codes and where they're supposed to be assigned to: https://en.wikipedia.org/wiki/List_of_North_American_Numbering_Plan_area_codes I say "supposed" because you can take a mobile phone number anywhere these days. The 2nd 3 digits, e.g. "745" in your example, traditionally meant a certain area within the area code. So for example, phone numbers in the 613 area code having 2nd 3 digits of "743", "744" and "745" would typically be to addresses near each other. That might designate a specific city, or a group of towns. Once again, mobile phones have taken some of that meaning away as landlines are disappearing. |
||
| 11 | |||
|
thesupertechie (she/they)
lemmy.blahaj.zone
thesupertechie@lemmy.blahaj.zone Joined: 2026-07-13 |
The first 3 digits, i.e. the ones between the parentheses in your example, is called the area code. Area codes in North America were divvied up by US and Canada, and they share the same phone number structure. Older area codes tend to have a "1" or "0" in the middle, but that convention went away, as devices like fax machines(!) and mobile phones proliferated, and more numbers were needed to ha...
I understood that, just how does my iPhone specifically find "Ottawa" specifically when 613 only identifies Eastern Ontario? |
||
| 2 | |||
|
trxxruraxvr
lemmy.world
trxxruraxvr@lemmy.world Joined: 2023-06-19 |
What I don't understand is the fact that 613 is Eastern Ontario? How did my iPhone pick up "Ottawa"?
When the phone number is registered to a business in for example google maps it will use that information i think. |
||
| 2 | |||
|
thesupertechie (she/they)
lemmy.blahaj.zone
thesupertechie@lemmy.blahaj.zone Joined: 2026-07-13 |
When the phone number is registered to a business in for example google maps it will use that information i think.
The number linked is a government number. |
||
| 2 | |||
|
Jagger2097
lemmy.world
Jagger2097@lemmy.world Joined: 2023-06-12 |
I understood that, just how does my iPhone specifically find "Ottawa" specifically when 613 only identifies Eastern Ontario?
The second group of three identifies the city (kind of) |
||
| 1 | |||
|
zabadoh
ani.social
zabadoh@ani.social Joined: 2023-11-19 |
I understood that, just how does my iPhone specifically find "Ottawa" specifically when 613 only identifies Eastern Ontario?
I edited a little onto my original reply about the 2nd 3 digits of a North American phone number. |
||
| 1 | |||
|
zabadoh
ani.social
zabadoh@ani.social Joined: 2023-11-19 |
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 |
||
| 5 | |||
|
kindnesskills
literature.cafe
kindnesskills@literature.cafe Joined: 2025-12-24 |
https://en.wikipedia.org/wiki/Area_codes_613,_343,_and_753 The city info is there in the 613 block, so Google just ignores it. |
||
| 6 | |||
Crackhappy
lemmy.world
Crackhappy@lemmy.worldJoined: 2023-06-09 |
I think that relying upon a closed source source of data is perhaps not the right way to go about this. Assuming that they are a source of truth to begin with is problematic. |
||
| 5 | |||
|
gastroglizzy
piefed.social
gastroglizzy@piefed.social Joined: 2026-08-26 |
The first 3 digits, i.e. the ones between the parentheses in your example, is called the area code. Area codes in North America were divvied up by US and Canada, and they share the same phone number structure. Older area codes tend to have a "1" or "0" in the middle, but that convention went away, as devices like fax machines(!) and mobile phones proliferated, and more numbers were needed to ha...
Fun fact: the three-digit set after the area code is called the "exchnage" code and the final, four-digit set is called the "transfer" code or subscriber code. |
||
| 3 | |||
|
WesternInfidels
feddit.online
WesternInfidels@feddit.online Joined: 2026-01-29 |
There was a time when a phone number's area code and exchange would indicate a pretty constrained geographic area -- for a land-line. I don't think it's possible to do this kind of "find the geography from a phone number alone" lookup accurately in the modern environment. Whatever API Apple provided got your example number right, sure. But how will you know when it gets one wrong? How can you know how often it gets it wrong? What does it really mean to assign a place to a cell number? My own phone number consistently gets pegged by these things as "belonging to" a specific town several miles away from where I live, probably because the exchange part of my number is one that used to be associated with that town. But that observation doesn't produce any kind of useful information today, it's just misleading. |
||
| 1 | |||
|
Kairos
lemmy.today
LodeMike@lemmy.today Joined: 2023-12-26 |
What I don't understand is the fact that 613 is Eastern Ontario? How did my iPhone pick up "Ottawa"?
I'm not familiar with Canada's geography id Ottawa the main city in Eastern Ontario? If so it's just a difference in phrasing. |
||
| 1 | |||
| Post Reply |
Back to top |