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

Overpass query OR

0
2

How can i express an logical OR in a query? For example if i would like to search node["amenity"~"courthouse|prison" OR "office"="layer"]

asked 01 Jun '15, 09:07

hwoehrle's gravatar image

hwoehrle
16122
accept rate: 0%


One Answer:

5

Union query:

(node["amenity"~"courthouse|prison"];
node["office"="layer"];);

answered 01 Jun '15, 15:08

neuhausr's gravatar image

neuhausr
7.5k870121
accept rate: 21%

edited 01 Jun '15, 19:56

Source code available on GitHub .