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

Node included in muliple ways

2

Is there a possibility that a NODE could be included in multiple WAYs?

asked 11 Sep '15, 12:52

carlilord's gravatar image

carlilord
46226
accept rate: 0%

Is there a specific situation (e.g. a particular node/way) that you're thinking of?

(11 Sep '15, 12:58) Lightsider

no I just use the API to get the ways from a nodeID and in my code I just handled the possibility to get one way back. (I want to add lanes in my local .osm file so I can use it in a traffic simulation)

(11 Sep '15, 13:11) carlilord

One Answer:

8

Yes. :) I can think of two situations:

  • Crossing ways (e.g. a junction between two roads).
  • Overlapping ways, where two ways lie over each other (e.g. a river which also forms the border between two countries).

answered 11 Sep '15, 13:01

Lightsider's gravatar image

Lightsider
1.5k52129
accept rate: 42%

thx didn't think about that...^^

(11 Sep '15, 13:13) carlilord
4

Or, much simpler, a street is split in two parts, and both share the connection node.

(11 Sep '15, 14:03) Frederik Ramm ♦

Source code available on GitHub .