Hello Guys, i am looking for way to get a List of House Numbers which are mapped in OpenStreetMap. I was using a method which is creating a request for every possible HouseNumber when i was looking for a certain street. This doesnt work because i am creating too many requests. So i hope there is a way to get a List of existing house numbers for a certain street. Thank you very much. asked 23 Sep '17, 17:21 mtz93 |
Did you know https://overpass-turbo.eu/ ? You can search after addr:housenumber (based on the map area or town area and filtered by other key values). You can also change the the grafical output to an other type like csv list. answered 24 Sep '17, 07:24 user_5359 1
Late answer for me but yes, i managed to make it work using Overpass. Thank you very much! :)
(03 Nov '17, 08:17)
mtz93
@mtz93 It would be useful if you post your own answer here or edit the original question and put your query here. So it would be useful for everybody.
(03 Nov '17, 09:35)
Sergey Karavay
|
I was stuck with the same task; get all housenumbers of a given street. Found this hacky way:
I have to say, the learning curve can be a wall and I'm not totally happy with the result. Maybe someone else has a nicer version. Afterwards I used "sort -g" under Linux to sort the list. answered 29 Sep '20, 14:58 neo0x3d It gets more complicated where associatedStreet relations have been used rather than addr:street on every building...
(29 Sep '20, 17:30)
EdLoach ♦
|
Short hint: instead using node, way, relation with the same condition you can use the short cut nwr [ out:csv("addr:street", "addr:housenumber")][timeout:25]; {{geocodeArea:Gänserndorf}}->.searchArea; ( nwr["building"]["addr:housenumber"]"addr:street"="Hauptstraße"; ); out; ] Edit add code formatting answered 30 Sep '20, 20:02 user_5359 |