Overpass question: get list of street names of previous search

I‘m searching two certain house numbers close to each other (under 10 m). The code below seems to do the job. But now I want to generate the list of street names of house numbers I found in the search. Can someone help?

[out:json];

( nwr["addr:housenumber"="20"]({{bbox}});

)->.houseA;

way(around.houseA:10)["addr:housenumber"="22"]

->.houseB;

( nwr.houseA(around.houseB:10);

)->. neighbour;

( .neighbour; );

out geom;

Link: https://overpass-turbo.eu/s/1nH6

4 posts - 2 participants

Read full topic


Ce sujet de discussion accompagne la publication sur https://community.openstreetmap.org/t/overpass-question-get-list-of-street-names-of-previous-search/5403