NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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

Naik Muhammad Rind [

![link text][1]

]1

permanent link

answered 31 Dec '21, 10:11

Naik%20M%20Rind's gravatar image

Naik M Rind
1
accept rate: 0%

Follow this question

By Email:

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

By RSS:

Answers

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:

×483
×63

question asked: 30 Dec '21, 13:23

question was seen: 1,216 times

last updated: 31 Dec '21, 10:11

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum