Why not ask your question on the new OpenStreetMap Community Forum?

I'm am trying to extract a set of nodes that represent signalized intersections with bike infrastructure leading into them.

the trouble I have run into is that I don't think there is a way to query nodes according to the attributes of the ways that connect to them.

Is that correct? If it is I can download the data and run the query as a join on the to and from OSM_ID's of the way in postgres. this will be fairly time consuming though so i wanted to first check and see whether anyone had a way to do this in overpass or overpass turbo.

thanks for any and all suggestions.

edit: I can query nodes and ways separately in overpass turbo using:

node [highway=traffic_signals] ({{bbox}}); out; way [bicycle=designated] ({{bbox}}); out;

but my goal is to return the subset of that query that is nodes connected to a line where bicycle=designated.

asked 03 Jun '21, 13:09

hughkelley's gravatar image

accept rate: 0%

edited 03 Jun '21, 14:06

Post a link to an example. What code have you got at the moment?

(03 Jun '21, 13:48) DaveF

edited to include example illustrating what is not useful to me. is the question not clear?

(03 Jun '21, 14:07) hughkelley

You need to recurse down from the ways to find the appropriate child nodes.

out center;
permanent link

answered 03 Jun '21, 15:37

DaveF's gravatar image

accept rate: 16%

Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 03 Jun '21, 13:09

question was seen: 604 times

last updated: 03 Jun '21, 15:37

powered by OSQA