This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How can I get Zip Codes that map to corresponding latitude and longitude?

0

I have the .xml data with all of the latitude and longitude points from the nodes for California, but I need corresponding zip codes as well. Anyone able to point me in the direction of a simple way to get these through OSM? Thanks.

asked 12 Jun '14, 19:22

ah2oman's gravatar image

ah2oman
11223
accept rate: 0%

1

Can you provide a rough estimate on the number of nodes? If we're talking about, say 1000 nodes, I wouldn't have an issue recommending Reverse Geocoding provided by Nominatim. If that's more like a million, I'd be more than reluctant to recommend that though, unless you set up your own infrastructure for that purpose.

(12 Jun '14, 20:34) mmd

Unfortunately its going to be expanded to the US, so we're talking millions...thank you though for your response!

(12 Jun '14, 22:28) ah2oman
1

Then the only option is to install a local Nominatim instance and do the geocoding yourself. OSM doesn't have such a list but it can be generated using OSM data.

Maybe you can tell us your ultimate goal and we can try to find a better solution?

(13 Jun '14, 07:15) scai ♦

Source code available on GitHub .