zipcode icon indicating copy to clipboard operation
zipcode copied to clipboard

Missing zipcodes

Open avishapiro opened this issue 10 years ago • 17 comments

There are over 6000 missing US zipcodes in the database. What are the sources? Many of the missing are in Washington, D.C. but another (17270) is in Pennsylvania.

zipcode.isequal('20001').zip

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-70-58347e736241> in <module>()
----> 1 zipcode.isequal('23001').zip

AttributeError: 'NoneType' object has no attribute 'zip'

avishapiro avatar Jan 11 '16 20:01 avishapiro

Thanks for letting me know Avi. The zipcodes are taken from a csv released on a governement website around 2006 I think so it is quite out of date and I am not surprised it is missing zip codes. I can send you the csv if you like. Do you have another source to build the database from that would be better?

I haven't looked at this for a while, but I'd like to update it so that it works for all zipcodes if I can.

buckmaxwell avatar Jan 11 '16 21:01 buckmaxwell

Hi Max,

I was surprised not to find a standard python module to fetch zipcode information and liked yours and your documentation. Another package, pyzipcode, uses 2004 data. Actually, reading more carefully, the change log says it uses an updated API for zips. I only needed a city name associated with the zipcode and I found sufficient data for download at http://www.unitedstateszipcodes.org/.

Cheers, Avi

On Mon, Jan 11, 2016 at 4:08 PM, Max Buck [email protected] wrote:

Thanks for letting me know Avi. The zipcodes are taken from a csv released on a governement website around 2006 I think so it is quite out of date and I am not surprised it is missing zip codes. I can send you the csv if you like. Do you have another source to build the database from that would be better?

I haven't looked at this for a while, but I'd like to update it so that it works for all zipcodes if I can.

— Reply to this email directly or view it on GitHub https://github.com/buckmaxwell/zipcode/issues/1#issuecomment-170690201.

avishapiro avatar Jan 14 '16 22:01 avishapiro

Just as an FYI buckmaxwell, I found some missing ones also. I went with a different package that had the few I couldnt find, but I liked this package. Saying this so that you know that people are looking at this package.

Bhhitt avatar Mar 07 '16 02:03 Bhhitt

I found a missing one: 54901

hangfei avatar May 16 '16 05:05 hangfei

For zipcodes csv file, what fields of info do you need for zip code?

hangfei avatar May 16 '16 05:05 hangfei

post the source of the input file and I can try to make an updater function.

dreyco676 avatar Nov 09 '16 18:11 dreyco676

There is a similar lib in R: https://cran.r-project.org/web/packages/zipcode/ It uses csv file from http://federalgovernmentzipcodes.us/ This source claims that the data was updated in 2012.

suokunlong avatar Nov 21 '16 06:11 suokunlong

A lot of people seem to use this package and it would be nice to be able to keep it up to date. I'll see what I can do over the next few days to get it updated.

buckmaxwell avatar Nov 30 '16 17:11 buckmaxwell

FYI I get zero results for: zipcode.islike('60') Which is most/all of Chicago.

I see you're working on it, so not trying to pile on, just a friendly heads up. Other than that I think the package is great, thanks!

ChrisMuir avatar Dec 08 '16 00:12 ChrisMuir

To add to the test suite, most or all of NC is missing as well -- zipcode.islike("27") and zipcode.islike("28")

kevinsa5 avatar Apr 26 '17 00:04 kevinsa5

For Indian ZIP codes... in major cities also it shows couldn't find zip code. Is there any other similar libraries which provides all the updated zip codes...

ibu2710 avatar Jun 30 '17 13:06 ibu2710

@ibrahim-appgodz , right now only zipcodes in usa are supported. If you have a source where I can find Indian zipcode information perhaps we can update the package.

buckmaxwell avatar Jun 30 '17 13:06 buckmaxwell

Hello all, if anyone is interested in being part of development for the next major version of this please let me know - I can add you to our slack channel. A lot of people use this project and I'd like for it to be up to date and reliable very soon :D

Max

On Fri, Jun 30, 2017 at 9:28 AM, Mohamed Ibrahim [email protected] wrote:

For Indian ZIP codes... in major cities also it shows couldn't find zip code. Is there any other similar libraries which provides all the updated zip codes...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/buckmaxwell/zipcode/issues/1#issuecomment-312267094, or mute the thread https://github.com/notifications/unsubscribe-auth/AF7DlF5nbhTdUaDkOrF8MxlwDcUatdrKks5sJPgOgaJpZM4HCoR- .

buckmaxwell avatar Jul 28 '17 17:07 buckmaxwell

Those interested, please send me an email at [email protected]

Thanks, Max

On Fri, Jul 28, 2017 at 1:36 PM, Max Buck [email protected] wrote:

Hello all, if anyone is interested in being part of development for the next major version of this please let me know - I can add you to our slack channel. A lot of people use this project and I'd like for it to be up to date and reliable very soon :D

Max

On Fri, Jun 30, 2017 at 9:28 AM, Mohamed Ibrahim <[email protected]

wrote:

For Indian ZIP codes... in major cities also it shows couldn't find zip code. Is there any other similar libraries which provides all the updated zip codes...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/buckmaxwell/zipcode/issues/1#issuecomment-312267094, or mute the thread https://github.com/notifications/unsubscribe-auth/AF7DlF5nbhTdUaDkOrF8MxlwDcUatdrKks5sJPgOgaJpZM4HCoR- .

buckmaxwell avatar Jul 28 '17 17:07 buckmaxwell

How about using this: http://federalgovernmentzipcodes.us/ ? It seems to be well curated by people knowing a thing about stats.

sjachim avatar Aug 17 '17 12:08 sjachim

Thanks for the tip.. I will look into this

On Aug 17, 2017 8:20 AM, "Szymon Jachim" [email protected] wrote:

How about using this: http://federalgovernmentzipcodes.us/ ? It seems to be well curated by people knowing a thing about stats.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/buckmaxwell/zipcode/issues/1#issuecomment-323056004, or mute the thread https://github.com/notifications/unsubscribe-auth/AF7DlGm_fL8b6AwcU9OWX6VM-uVK-Fqxks5sZC_6gaJpZM4HCoR- .

buckmaxwell avatar Aug 21 '17 13:08 buckmaxwell

we finally have an update to this issue. zipcodes in 3.0.0 are up to date. There is also a way (described in the README.md) to keep the zip database up to date by running a monthly cron job.

buckmaxwell avatar Jun 18 '18 19:06 buckmaxwell