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

Tagging a conditionally oneway road

2
1

How would I tag a road that's conditionally one-way? It's the exit road for a parking lot that doubles as a residential street. If you live along that street, or are making a delivery to a residence there, it's a two-way road. For everyone else, it's one-way.

I've found how to tag one-wayness based on what sort of vehicle is involved (eg. two-way for bicycles, but one-way for motor vehicles), but not how to tag it for what you're doing.

asked 09 May '16, 08:29

Carnildo's gravatar image

Carnildo
831212543
accept rate: 40%


3 Answers:

3

I would add the common case with "oneway=yes" and the special case using conditional restrictions with "oneway:conditional=no @ destination". As of today, "oneway:conditional=no @ destination" has already been used 44 times.

It also covers the delivery case in my opinion.

Not sure how to specify multiple conditions. I would expect "oneway:conditional=no @ (destination OR delivery)" but conditional restrictions only specify operator AND but not operator OR.

For specifying multiple conditions, the conditional restrictions page allows to use a semicolon (;). So tagging the special case using "oneway:conditional=no @ destination; no @ delivery" is also an option. But as stated before, destination also includes delivery in my opinion.

answered 09 May '16, 12:13

scai's gravatar image

scai ♦
33.3k21309459
accept rate: 23%

edited 09 May '16, 12:28

0

Hi Carnildo, just tag it as a one way street and make explicit tags for the group that allowed going reversed or the opposite direction, see these pages like https://wiki.openstreetmap.org/wiki/Key:access

answered 09 May '16, 10:02

Hendrikklaas's gravatar image

Hendrikklaas
9.3k207238387
accept rate: 5%

0

Perhaps you need the :forward and :backward suffixes for the access tag? How about access:forward=yes access:backwards=destination to say "You can drive forwards along this way, but you can go backwards only if this is your destination". Change :forward/:backwards as appropriate. However, rather than the generic access tag, you should use something more accurate, like vehicle:forwards=yes vehicle:backwards=destination

answered 09 May '16, 10:10

rorym's gravatar image

rorym
5.4k1449100
accept rate: 11%

edited 09 May '16, 10:12

Source code available on GitHub .