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

Overpass: Extend list with streets by house numbers

0

Hello,

I am using Overpass to list all streets for an area. Now I want to extend the query with the house numbers. Preferably the smallest and largest house number per street. Do you have any ideas? I found another query for house numbers. Is it possible to combine them?

Here is my query so far:

[out:csv(key;false)]; {{plz=33039}} area[postal_code="{{plz}}"]; way(area)[highway~"^trunk$|^primary$|^secondary$|^tertiary$|^unclassified$|^residential$|^primary_link$|^living_street$|^service$|^pedestrian$|^track$|^road$|^footway$|^bridleway$|^path$"][name]; for (t["name"]) ( make stat num=count(ways),key=_.val,len=sum(length()); out; );

Here is the query for house numbers:

[out:csv("addr:housenumber")][timeout:25]; {{geocodeArea:Nieheim}}->.searchArea;

( nwr["building"]["addr:street"="Steinheimer Straße"]"addr:housenumber"; ); out body;

; out skel qt;

asked 30 Dec '21, 13:23

elvitas's gravatar image

elvitas
11112
accept rate: 0%

Your routines appear to be incomplete. Provide OP links to them.

(30 Dec '21, 20:36) DaveF

One Answer:

0

Naik Muhammad Rind [

![link text][1]

]1

answered 31 Dec '21, 10:11

Naik%20M%20Rind's gravatar image

Naik M Rind
1
accept rate: 0%

Source code available on GitHub .