A public forum for discussing the design of software, from the user interface to the code architecture. Now closed.
I'm looking for a web service that I can call with a street address, city and state and which will return a zip code. Also, given a zip code, one which will return a city & state.
Anything like this out there, hopefully free or reasonably priced? What about databases online or on CD-ROM that I could obtain?
I found a web service that does a bulk dump of zip code/city listings, and USPS sells a CD with a zip code viewer (but the data is encrypted). But no going from street address to zip code. Must be something out there...
I used to do this long ago with Census DIME files. It looks like they've renamed them to TIGER, but they're still around, and freely downloadable.
Just FYI - The USPS WebTools links probably won't do you any good. They're supposed to be used for shipping, and not for address/zip code validation. The USPS won't give authorization just for validation purposes.
I have several apps that record client information, and we're always having problems with invalid zip codes. I tried to use the USPS data via their webtools, but (even though I'm with a state government) they wouldn't let me; they sent me the link to their purchasable subscription database.
You can also use the Yahoo! Maps geocoding API. It will give you both scenarios you are looking for:
IN: address, city, state
Note, it's free, but according to their documentation, it's limited to 5000 calls per day per IP.
Search on Yahoo for "geocoding api" or go to this link.
Google also probably has something similar, but I know the Yahoo one works from experience.
Also, this may not matter to your project, but zip codes sometimes map to multiple towns/cities. This can get some customers up in arms when they type in a zip code and your application tells them they live in a neighboring city, which may have a much worse reputation than their actual city.
This topic is archived. No further replies will be accepted.Other recent topics
Powered by FogBugz