1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 
(
way[~"^addr:.+"~".+"]({{bbox}});
-
(
// find all highways with name
way["highway"]["name"]({{bbox}}) -> .streets;
 
// find  addresses near those highways
nw["addr:postcode"]["addr:street"](around.streets:150)-> .addresses;
 
 
// for each street, extract only addresses whose addr:street matches street name
foreach .streets->.street(
  nw.addresses(if: t["addr:street"] == street.u(t["name"]));
  (._ ; .result; ) -> .result;
);  
 
.result;
););
// print results
out body;
>;
out skel qt;
50 m
Leaflet © OpenStreetMap contributors
1
 
no data loaded yet