8

I have a bunch of telephone numbers (just the area codes), and I'd like to geolocate them and make a map, but I haven't had too much luck googling for shapefiles for Area Codes. Surely these are in the public domain?

8
  • 1
    Are you willing to pay? I had a quick look, but was not able to find any free sources -- it seems there are many companies eager to sell the data, however.
    – nmpeterson
    Commented Apr 22, 2012 at 1:47
  • It appears that ESRI might have them on their data CD. Commented Apr 22, 2012 at 3:08
  • (1) Do you need the shapefile for the entire United States?
    – DSG
    Commented Apr 22, 2012 at 18:52
  • 1
    An older answer, but perhaps still with useful information, appears at stackoverflow.com/questions/4047689/….
    – whuber
    Commented Apr 22, 2012 at 21:39
  • @nmpeterson: I would prefer to avoid paying if possible; this is for a hobby project. Commented Apr 22, 2012 at 22:25

4 Answers 4

5

You could also try using the MaxMind GeoLite City dataset. This dataset is a point layer that contains both the AreaCode and MetroCode (Example: AreaCode - MetroCode - XXXX). If you have a metrocode, you might be able to get closer than just with area code by finding the nearest City point that shares both the area code and metrocode of the phone number you are testing.

If you are trying to get the center of the area code, you could try creating something like a Voronoi diagram and dissolve the polygons to generate area-code like boundaries. I will tell you, however, tried this method already, there are a lot of outliers that will need to be cleaned up in order to get a decent output of area codes (see image below). It certainly wouldn't be perfect, but would give you an approximation.

There are some other questions that have mentioned the MaxMind dataset that you may want to read for additional information.

Initial map, all points:

Unfiltered area codes

Update: After doing some pre-processing of the points to remove outliers and clipping to the US boundaries, the result turned out pretty good, I thought.

"Cleansed" map after removing outliers and clipping to US border

2

Area Code Map

http://www.usnaviguide.com/areacode.htm

"area codes have very little correlation with geographic location. Zip codes are much more useful."

Source: http://groups.google.com/group/google-maps-api/browse_thread/thread/74262bccd2e0ce36

1

Old, question, but since it still appears at the top of my google search, the UCLA Geoportal has a free version of the NANP boundries.

0

It took some searching, but this USGS site has shapefiles for plotting (or otherwise using) area code geographic areas:

https://www.sciencebase.gov/catalog/item/4f4e4a19e4b07f02db605716

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.