Hi-

I need some help finding a module or program that can take a list of U.S. zipcodes and provide their corresponding cities and states. Any ideas as to what program I can use for this task?

Thanks for your help.

Comments

bjornarneson’s picture

I think that location.module will be a good place for you to start.

http://drupal.org/project/location

There is a zip code database dump available that has nearly all US Zip codes, with corresponding city names and lat/lon data.

ba

j.q’s picture

Thanks for the lead. I do have the location module installed on my site. What I'm hoping to find is a program that can help me pharse a long list of zipcodes and match them to their cities and states. I'll have to look at the module again to see if it can do what I need.

Thanks for the lead.

andrewgearhart’s picture

I worked on an attempt to do this quite a while ago. One of the major obstacles in doing this is the simple fact that there are, particularly in rural areas, multiple city/township/domesticality/settlements per zip code. As an example:
http://zip4.usps.com/zip4/citytown_zip.jsp
You search for 15202... and...
There are SIX acceptable city names for that zip code. Unfortunately, as well, they aren't synonymous. So... what I did for my project... I presented a list of cities that were available for that zip (used XML-Request onKeyUp for each character, they they could select the city from the drop-down list). My situation was further clouded by the fact that I had to collect the county as well... and some populated places exist across county lines. What a mess.

Zip codes are an abomination. We ought to switch to a universal address system such as the one put forward by NAC Geographic Products: http://www.nacgeo.com/

Oh... it should be noted that the USPS has an API that is available for address correction, zip code lookup (including +4), etc. You can find more informaton on that here:
http://www.usps.com/webtools/

Andrew 'Mickey Knox' Gearhart
Web Developer kinda guy

web2’s picture

Hi,

I also need some help finding a module or program that can take a list of Indian zipcodes and provide their corresponding cities and states. Any ideas as to what program I can use for this task?

I need this module for http://nashikit.com and http://www.indiancity.org .

http://www.nashikit.com is develop in drupal 4.7.0 and http://indiancity.org is develop in drupal 4.7.2

Above websites are Host and Develop by http://www.thethrees.net which is also develop in drupal.