Hi,

I'm trying to find the motorway_link ways coming from a motorway_junction node (and so exiting a motorway) and which don't have a destination=* set.

Here's an example of the current query where it shouldn't return anything:

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

And here it should return only two motorway_junction ways:

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

Thanks in advance for any help!

asked 28 Oct '18, 11:00

The%20RedBurn's gravatar image

The RedBurn
101237
accept rate: 0%

edited 28 Oct '18, 11:04


The node->way recurse filter does exactly what you want:

node[highway=motorway_junction]({{bbox}});
way(bn)["highway"="motorway_link"][!"destination"];
out body;
>;
out skel qt;

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

permanent link

answered 28 Oct '18, 11:26

maxerickson's gravatar image

maxerickson
11.0k1075155
accept rate: 30%

Wow, thanks that's great (and that was fast)! And thanks for the link!

(28 Oct '18, 11:30) The RedBurn
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:

×125
×49

question asked: 28 Oct '18, 11:00

question was seen: 560 times

last updated: 28 Oct '18, 11:30

powered by OSQA