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

Hello,

I want to find all crossroads with their associated street names, but there are nodes without any attributes I can search for (like highway=crossing).

For example: http://overpass-turbo.eu/s/KAg

So I guess I have to search in an area for nodes which belong to two or more ways. Unfortunately I don't know how to achieve such a query.

Any help would be appreciated, thanks.

asked 09 Jul '19, 11:07

Chrno's gravatar image

Chrno
26114
accept rate: 0%


Please have a look at the examples in the wiki: Search for nodes which belong to two different ways and the following one, as well as Search for street intersections. Can you take it from there to adapt these queries to your specific needs?

permanent link

answered 09 Jul '19, 12:13

TZorn's gravatar image

TZorn
12.3k764225
accept rate: 15%

edited 09 Jul '19, 12:15

I've just tried pasting a variation on the first of those into an overpass turbo window and got "Error: runtime error: […] The server is probably too busy to handle your request. ". Only if I zoom in to around 100m2 does it work - https://overpass-turbo.eu/s/KAD .

(09 Jul '19, 12:54) SomeoneElse ♦

The example in the wiki helped, thank you!

Got this for now and it's showing the node I need:

[bbox:{{bbox}}];

way[highway][name="Haimhauserstraße"]->.w1;

way [highway] (around:1, 48.1624106, 11.5884358)->.w2;

node(w.w1)(w.w2);

out;

http://overpass-turbo.eu/s/KCf

At "48.1624106,11.5884358" I'm on/around the street of w2. Given this point, how is it possible to get the crossing street of w1 for the query without a constant value ("Haimhauserstraße")?

(10 Jul '19, 06:19) Chrno
1

That works with the code given under the heading "If ways cannot be split into two distinct groups..." (although two ";" were missing):

way[highway]({{bbox}})->.allways;  
foreach .allways -> .currentway(  
  (.allways; - .currentway;)->.allotherways;  
  node(w.currentway)->.e;  
  node(w.allotherways)->.f;  
  node.e.f;  
  (._ ; .result;) -> .result;  
);  
.result out meta;

http://overpass-turbo.eu/s/KCR

This finds also the connection point of two road segments, though, not only strict intersections.

(10 Jul '19, 09:50) TZorn

Thanks, that works for me!

(12 Jul '19, 05:13) Chrno

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:

×689
×483
×167
×92
×53

question asked: 09 Jul '19, 11:07

question was seen: 4,079 times

last updated: 12 Jul '19, 05:13

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