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

Find areas and their highways within distance

0

The following query provides the names of residential streets within the `distance' of the lat and lon. (as yet. my current understanding of the QL is too primitive to make the street names visible other than copying and editing the data screen).

<query type="way"
<around lat="lat_number" lon="lon_number" radius="distance_in_metres"/>
<has-kv k="highway" regv="residential"/>
</query>
<union>
<item/>
<recurse type="down"/>
</union>
<print/>

What would be the form of the query which would provide both the street and area in which the street is found.
The area is to be the area one would normally use in an address eg town, village, suburb etc.

asked 21 Nov '17, 11:28

rorylila's gravatar image

rorylila
41446
accept rate: 0%

edited 21 Nov '17, 11:46

scai's gravatar image

scai ♦
33.3k21309459

Source code available on GitHub .