ziptastic icon indicating copy to clipboard operation
ziptastic copied to clipboard

Handling of ambigious zipcodes

Open klemmster opened this issue 13 years ago • 4 comments
trafficstars

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"}

klemmster avatar Apr 11 '12 15:04 klemmster

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

daspecster avatar May 09 '12 18:05 daspecster

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).

eostrom avatar May 10 '12 20:05 eostrom

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.

yakatz avatar Jul 29 '13 21:07 yakatz

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.

wguldin avatar Jun 03 '14 03:06 wguldin