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

Towns located between two distances from around.center (greater than x, less than y)

0

I am trying to find towns located between 100 and 200km from Adelaide, South Australia, resulting in a "donut" like shape. The code below shows me towns less than 200km from Adelaide, but am unsure how to exclude those less than 100km:

node["place"="city"]["name"="Adelaide"]->.center;
node(around.center:200000)["place"="town"];
out;

Would someone know how to achieve this?

Thanks.

asked 27 Dec '19, 10:47

ElectronicallyE's gravatar image

ElectronicallyE
21112
accept rate: 0%

Source code available on GitHub .