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

ZipCodes to lat/long from planet.osm

1

I am planning to import the data dump from osm the planet.osm and get the lat/long based on zipcodes. But I see zipcodes are not part of planet.osm. Does OSM allow this functionality?

asked 06 May '13, 23:15

Stupendous's gravatar image

Stupendous
16111
accept rate: 0%


2 Answers:

2

You are allowed filter from Planet.osm whatever you want. ZIP code coverage varies for different areas or countries.

Please have a look at https://wiki.openstreetmap.org/wiki/Key:postal_code and https://wiki.openstreetmap.org/wiki/Key:addr:postcode

answered 07 May '13, 07:05

Roland%20Olbricht's gravatar image

Roland Olbricht
6.7k36489
accept rate: 36%

0

At least in the US, ZIP codes don't line up with geographic areas, they line up with postal routes. In a few cases, there's situations where two zipcodes checkerboard an otherwise coherent polygon. Worse, zip codes, particularly in rural areas, tend to be in a continuous state of flux.

It's best to stick to the postal_code key on known addresses in the US.

answered 08 May '13, 05:41

Baloo%20Uriza's gravatar image

Baloo Uriza
3.2k143061
accept rate: 9%

Source code available on GitHub .