Closed MurzNN closed 3 years ago
Your query is buggy, you need to assign the results of the the first area statement to an explicit inputset.
area[...]->.myarea;
...
(
node[...](area.myarea);
node[...](area.myarea);
);
See https://help.openstreetmap.org/questions/20531/overpass-ql-nodes-and-ways-in-area for more explanation.
Kindly close this issue after reading this comment.
Thanks for quick reply, I wasn't know that specifying name for area is required, even when I need only one area! With named area all works well!
Here is example of problematic query, that can be tested via https://overpass-turbo.eu/:
It returns only two nodes in result, that matched first filter
city
, instead of more than 10.If I comment-out first condition with
city
and repeat query:it will return matches to second condition
town
, withoutvillage
.Can you please describe why this happens, and is this a bug, or I understand the
Union
syntax wrong? Thanks!P.S. I