I'm looking to query Overpass Turbo for postal code boundaries, specifically all within the USA. Here's what I found so far and where I'm stymied:

This query for postal code boundaries in Liepzig works:

out geom;

This query for boundaries of the State of Oregon works:

out geom;

But this query for postal code boundaries inside the State of Oregon does not:

out geom;

Thoughts on why this last query doesn't work while the first two do?

  • Have you reviewed this question and answer? I imagine if you found the area id for Oregon you would be successful using the query offered. gis.stackexchange.com/questions/134501/…
    – psl
    Commented Mar 14, 2017 at 4:45
  • That is the post that helped me get the query correct for Liepzig - but the underlying data seems to not exists for most of the USA as noted by @AndreJ
    – bjnsn
    Commented Mar 15, 2017 at 21:00

1 Answer 1


You can only get out of Openstreetmap what others have put into the database.

If you look at https://taginfo.openstreetmap.org/tags/boundary=postal_code#map, you will see that boundaries of type postal_code are mostly used in Germany, but only few outside.

Address information is mainly stored using the key addr:postcode, as you see at https://taginfo.openstreetmap.org/keys/addr:postcode#map, as well as the key postal_code https://taginfo.openstreetmap.org/keys/postal_code#map. So you have to query for those, and build boundary polygons from that yourself.

You will probably run into timeout problems with Overpass, so think of downloading http://download.geofabrik.de/north-america/us/oregon-latest.osm.pbf and filter that locally. Or take a look at Sources for US Zip Code Boundaries? or https://www.census.gov/geo/maps-data/data/cbf/cbf_zcta.html


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.