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

How to tag a road that is oneway only in some parts?

4

Hi I've got a road with six nodes. let's start a drawing

---+A -------->+B-----------------------+C<------+D-------
with + should represent crossroads.
AB is oneway from A to B
BC is with no restriction CD is oneway from D to C
As the road is the same with continuous numerotation, same name ... How should I render it for best ?

Thanks for your answer.

asked 01 Sep '10, 18:20

Ebeer's gravatar image

Ebeer
61123
accept rate: 0%

edited 01 Sep '10, 18:45

Gnonthgol's gravatar image

Gnonthgol ♦
13.8k16103198

You say "How should I render it". Are you trying to build or configure a rendering system, and encountering this problem in the data? ...or perhaps you just mean "How should I map it"? (how to arrange the ways and tag it within the editor)

(04 Sep '10, 12:22) Harry Wood

One Answer:

7

You should split the way at the nodes and then apply the oneway=yes tag only to those ways where it applies, reversing the way where needed. All the tags present in the current way should be the same to the new ways thus specifying that this is the same road.

The resulting 5 ways should look something like this:

  • ?A: ref=1, name=Main Street, highway=primary
  • AB: oneway=yes, ref=1, name=Main Street, highway=primary
  • BC: ref=1, name=Main Street, highway=primary
  • DC: oneway=yes, ref=1, name=Main Street, highway=primary
  • D?: ref=1, name=Main Street, highway=primary

answered 01 Sep '10, 18:42

Gnonthgol's gravatar image

Gnonthgol ♦
13.8k16103198
accept rate: 16%

edited 01 Sep '10, 18:58

Andy%20Allan's gravatar image

Andy Allan
12.5k23128153

Source code available on GitHub .