daspecster / ziptastic

This is a Python API for getting zipcodes
http://daspecster.github.com/ziptastic/
127 stars 17 forks source link

Handling of ambigious zipcodes #13

Open klemmster opened 12 years ago

klemmster commented 12 years ago

curl http://zip.elevenbasetwo.com?zip=10115

returns:

{"country": "US", "state": "NY", "city": "NEW YORK"}

however, it should indicate that this is also a match.

{"country": "DE", "state": "BERLIN", "city": "BERLIN"}

daspecster commented 12 years ago

Looks like this issue is getting bigger now that we added more!

eostrom commented 12 years ago

Related, 55416 is a zip code that includes portions of both Minneapolis and St. Louis Park, MN. It's not the case that city can always be determined from the zip (or even zip + country).

yakatz commented 11 years ago

Same issue with 20901: Most people use "Silver Spring, MD", but ziptastic returns "Takoma Park, MD". According to the USPS website, the preffered result is Silver Spring.

wguldin commented 10 years ago

One possible way to handle this is something like the Checkout process of Crate & Barrel, which upon Zipcode submission, provides a dropdown of all valid cities within that zipcode. Don't know if it's possible to replicate this with ziptastic, but it'd be more user-friendly.