This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Locating switches and crossings in railway networks

1

Imagine I have downloaded all ways with railway=rail of a country. Now I would like to select all nodes that should contain railway=switch or railway=railway_crossing. The list of situations is:

  1. three ways end in one node
  2. four ways end in one node
  3. one node is in the middle of one way and at the start of another way
  4. one node is in the middle of two ways

My search queries for cases one and two are:

  1. ways:3- type:node
  2. ways:4- type:node

My question to you: how can I select case three and case four?

asked 06 May '20, 13:19

JJJWegdam's gravatar image

JJJWegdam
26112
accept rate: 0%

Source code available on GitHub .