This repository has been archived by the owner. It is now read-only.
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
pyzipcode Fix SQL injection. Jun 5, 2012
.hgignore added ignore file Aug 28, 2010
CHANGES.txt update to maxmind database Sep 6, 2010
README.md Add note that project is no longer maintained Oct 14, 2018
setup.py Adds zipcode.db to package_data in setup.py. Mar 18, 2014

README.md

Note: this fork is not maintained. Please reference the original project of which this is a fork. This stackoverflow post also contains some useful resources.

It is important to recognize the limitations of a project such as pyzipcode. Zipcodes are not areas but instead refer to the addresses on a mail delivery route, or else the location of a post office. Converting them to polygons is hypothetically possible, but it is open to interpretation. Technically, only mailing addresses have zipcodes and the space between mailboxes have no zipcode. In practice, mail routes follow roads, and one can create polygons by drawing boundaries around the roads and addresses of a route, but the resulting polygons are often non-contiguous. Computing the centroid of this polygon (as pyzipcode does) is extremely fraught; it is quite likely that the centroid is not even within the polygon! Zipcodes also change fairly frequently as postal routes change and new addresses are created, so any data source which is not updated regularly quickly becomes useless.