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

Hello!

As mentionned here (https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_API_by_Example#List_of_streets) one can use

[out:csv("name";false)]; area[name="Passau"]; way(area)[highway][name]; out;

to get all streets for a given city.

However, A lot of streets are missing (for example in Passau, Germany). However, on openstreetmap.org on the official map the street can be found.

Am I missing something?

Thanks for your help.

asked 03 Mar '20, 14:03

vielhuber's gravatar image

vielhuber
11223
accept rate: 0%

edited 03 Mar '20, 15:57


I had the wrong API endpoint URL.

Had to use: https://lz4.overpass-api.de/api/interpreter instead of https://overpass-api.de/api/interpreter.

permanent link

answered 03 Mar '20, 16:30

vielhuber's gravatar image

vielhuber
11223
accept rate: 0%

That's weird, I got 9117 (non-uniq) results in either cases. Actually on the wiki I find that one URL is a redirection to the other (with a round-robin to another one).

Maybe a temporary problem on the server ?

Do you have missing streets examples ?

Regards

(03 Mar '20, 20:55) H_mlet

Just try out:

[out:csv("name";false)]; area[name="Passau"]; way(area)[highway][name]; out;

On https://overpass-turbo.eu/ I don't find "Baumannstraße", on https://lz4.overpass-api.de/api/interpreter (via a direct request) I receive "Baumannstraße".

(03 Mar '20, 21:05) vielhuber

That's really weird, as said before there's a 50-50 chance that it's the same server ! When I use lz4 through turbo, I get the same result, without Baumannstraße. But when I look specifically for it, it comes :

[out:csv("name";false)]; area[name="Passau"]; way(area)[highway][name="Baumannstraße"]; out;

And when I display the results of your query, the Baumannstraße is highlighted. But my browser can't find it in the data. :-( https://overpass-turbo.eu/s/Rh4

(03 Mar '20, 22:40) H_mlet

But when I download the data (either as OSM from the linked query, or as CSV from your query : https://overpass-api.de/api/interpreter?data=%5Bout%3Acsv%28%22name%22%3Bfalse%29%5D%3B%20area%5Bname%3D%22Passau%22%5D%3B%20way%28area%29%5Bhighway%5D%5Bname%5D%3B%20out%3B ) I can find it in the downloaded file !

Well and it works again when I copy from the data tab to a file, so I guess the problem is with my browser search engine...

My browser is Firefox 68.5.0esr. Can you confirm it's only a browser problem ?

(03 Mar '20, 22:50) H_mlet

Yes I can confirm that. When I do a GET request via console or Postman, I get both for https://lz4.overpass-api.de/api/interpreter and for https://overpass-api.de/api/interpreter "Baumannstraße". But not in the webinterface https://overpass-turbo.eu/.

(03 Mar '20, 23:18) vielhuber
Your answer
toggle preview

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:

×362
×228

question asked: 03 Mar '20, 14:03

question was seen: 3,066 times

last updated: 03 Mar '20, 23:18

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