In the free zip code location DB provided at http://www.unitedstateszipcodes.org/zip-code-database/ there are 8,695 CONUS+Hawaii zips which do not appear in the Craigslist region zip lists we’ve been using. I computed the centroids of the zips for each Craigslist region, and found the closest centroid for each of the 8,695 missing zips. This is the resulting assignment for the full set of zips.
The database contains one clearly inaccurate coordinate, for the Pentagon zip code, so there may be others. The Pentagon one stands out because the coordinate is over 1,900 miles from the nearest centroid.
The final result is in `more-cl-zipcodes.txt`. The calculation is in `complete_cl_assignments.py`.
Building the data =================
- pip install zip-code-radius
- Download the csv database mentioned above and the CL data.
- Run make_zipstate.py
- Run parse_cl_data.py
- Run complete_cl_assignments.py