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

How to include the boundary roads in a query for roads within a town?

1

A suburb called Beaconsfield (NSW, Australia) is bounded by six streets and four other suburbs. The following query lists a total of nine streets in the suburb, None of the bounding streets are included in that list.

[out:csv("name";false)] [bbox:-33.9142158, 151.1919887, -33.9066269, 151.2080568]; area[name="Beaconsfield"]; way(area)[highway][name]; out;

Visual inspection of the map confirms the presence of the nine streets in Beaconsfield and six boundary streets.

Similar queries of the adjoining suburbs demonstrates that five of the six boundary streets are not included in those suburbs either. The one exception occurs because that street projects past the boundary into the adjoining suburb.

What is the query for listing roads within and on the boundary of a town?

asked 19 Aug '20, 06:57

rorylila's gravatar image

rorylila
41446
accept rate: 0%

Source code available on GitHub .