I want to be able to give a best guess for what city and state a zip code is in via a web application. Is there some web service I can use to figure this out?
The ZIP Code Population Weighted Centroids allows researchers and analysts to estimate the center of population in a given geography rather than the geometric center. Data to estimate ZIP code centroids is extracted from administrative USPS address data.
ZIP codes can and do cross state lines (rarely, but just enough to cause some problems and confusion), county lines (about 10% of ZIPs are in more than one county), political jurisdictions (cities, congressional districts), metro areas, etc.
When looking at postal codes around the world, there are cases where two different cities are served by the same postal code. For example, the zip code 94608 in California is used for both Emeryville and parts of Oakland. One postal code, two cities.
Hate to do this to you, but look here...
I believe the USPS has an API for some queries, you should look into that.
However, here are a few from the above resource:
-Adam
The USPS has an API for this, but you have to register:
USPS Web Tools
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With