Skip to content

coventry/cl-zip-codes

Repository files navigation

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

Building the data =================

  1. pip install zip-code-radius
  2. Download the csv database mentioned above and the CL data.
  3. Run make_zipstate.py
  4. Run parse_cl_data.py
  5. Run complete_cl_assignments.py

About

Extension of craigslist zipcode regions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages