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

accept rate: 0%

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

(30 Dec '21, 20:36) DaveF

Naik Muhammad Rind [

![link text][1]


permanent link

answered 31 Dec '21, 10:11

Naik%20M%20Rind's gravatar image

Naik M Rind
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 30 Dec '21, 13:23

question was seen: 107 times

last updated: 31 Dec '21, 10:11

powered by OSQA