Limiting a complex query to an area

Hello, I am trying to limit a query to, say, Germany:

[out:json];
{{geocodeArea:Deutschland}};
// Find objects tagged "megalith" using the tag "site_type" OR "archaeological_site"
(
  nwr["site_type"="megalith"](area);
  nwr["archaeological_site"="megalith"](area);
);
out body;
>;
out skel qt;

This query though seems to ignore the second line in the union statement, nwr["archaeological_site"="megalith"](area);
Same if I flip the first and second line.

What is going on? And how can I achieve this?

4 posts - 3 participants

Read full topic


Ce sujet de discussion accompagne la publication sur https://community.openstreetmap.org/t/limiting-a-complex-query-to-an-area/6991