How to geocode a phone number in the United States?

I'm looking for a way to get the latitude and longitude coordinates of any area code + prefix landline phone in the United States. Does anyone know a data provider or service that can be used to do this?

EDIT: I understand that the location of cell phones or VOIP lines is probably impossible to geocode, and that is good for me. I'm only interested in POTS phone numbers. Although it would be nice to be able to identify the type of telephone service based on the prefix (if possible).

+4
source share
5 answers

I found several options that do the trick for a reasonable price:

Option 1 (subscription to web services):

DOTS service facilities GeoPhone web service should do the trick beautifully. It seems to even provide information like the โ€œtelephone typeโ€ that I was hoping for.

Option 2 (subscription to the database):

AreaCodeWorld โ„ข Platinum Edition is a database product that can be purchased with a one-time or annual subscription. The data specification includes all codes and prefixes in North America, as well as latitude and longitude coordinates.

+2
source

There are sites that do this, such as http://www.thedirectory.org . I have no idea if they have something like a RESTful api that you could use, although I assume you can always look at them. Presumably, the raw data that they use should be something you could possibly get from a telephone company.

+2
source

Using the Google Geocoding API and the list on the side of allareacodes.com, I created this json for a hacker project:

http://pintweets.com/area_codes.json

It is clear that this is not acceptable evidence for the court, but it should work for certain purposes.

+2
source

Publicly available geocoded data for postal codes (although the place they give is the geocode for the corresponding postal branch), so you could create such correspondence (although you have to choose a specific postal code more or less at random, since there are many others zip codes than area codes).

However, there will be some built-in error. Some rooms (e.g. 800 rooms) do not have a specific design location. Same thing with cell numbers. In New York, in any case, there is cell #, which starts with the same file as the NY phone number (for example, 718, 212). I'm not sure carriers should provide these #s in a way that matches the customer billing address, so you can get a situation where most of the 212 #s are NYC, but some are cell phones in Wichita.

0
source

EveryoneAPI will do exactly what you are looking for.

You can limit your request to only a location by adding "data = location" to your HTTP request and you will return something like this:

"location": { "city": "Birmingham", "geo": { "latitude": "33.51685254860801", "longitude": "-86.81075983815001" }, "state": "AL", "zip": "35203" } 

Disclaimer: I am the CEO of Telo.

0
source

Source: https://habr.com/ru/post/1285700/


All Articles