I have a pretty basic query and all I want is the ‘boundary’ of the ‘place’ but I am harvesting some other features too.
[out:json][timeout:30];
// --main area
area[name=‘Western Cape’]->.b;
// – target area ~ can be way or relation
relation(area.b)[name=‘Woodstock’];
map_to_area → .a;
// print results
out geom;
How do I harvest the ‘boundary’=‘place’ geom only please?
FYI There’s no need to save area to a variable, [place] isn’t required, union brackets aren’t required & it speeds the search if you use regex code to define how to search - ^ =starts with, $ = ends with.
area[boundary=administrative][name="Western Cape"];
wr[place~"^(sub|town|city|count|state)"](area);
out geom;