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?
-
1Are 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.– nmpetersonCommented Apr 22, 2012 at 1:47
-
It appears that ESRI might have them on their data CD.– mhoran_psprepCommented Apr 22, 2012 at 3:08
-
(1) Do you need the shapefile for the entire United States?– DSGCommented Apr 22, 2012 at 18:52
-
1An older answer, but perhaps still with useful information, appears at stackoverflow.com/questions/4047689/….– whuberCommented Apr 22, 2012 at 21:39
-
@nmpeterson: I would prefer to avoid paying if possible; this is for a hobby project.– Jason SundramCommented Apr 22, 2012 at 22:25
4 Answers
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:
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.
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
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.
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