You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bicycle routing support for cycleway:left and cycleway:right tag #280
More important is support for the oneway stuff in order to avoid longer detours. If possible priority handling can also be implemented, although it is not easily possible to decide what to prefer for which kind of bike. E.g. a racebike rider probably will not like to go against a oneway.
I think that the oneway aspect of this issue (values=opposite*) is identical to #205. After making some overpass queries I found out that the usage of #205 (bicycle:backward) is much more common compared to the cycleway:left or cycleway:right usage with "opposite". I cannot see any country dependent aspect. It does not matter if the car traffic runs on the left or on the right side.
Besides the oneway aspect of this issue there is the priority handling aspect, which eventually should be handled differently for every kind of bike. Here I see some relation with one of the aspects of #330, where the highway classification tag, if present, should have some influence on the priorisation. E.g. highway=primary together with some cycleway "lane, track ..." tag should not lead to increased preference, especially when comparing to an ordinary highway=residential or highway=unclassified without any cycleway. The same is true if the cycleway is running opposite to a oneway. We should not prefer such a cycleway. I quickly checked the code, I could not find any part where we are rating down the priority in these cases. I know people, which claim to have statistics, which say that these kind of cycleways are extremly dangerous for a cyclist. I believe that they might be right.
In my last comment I meant that cycleway:left and cycleway:right with the value opposite* are rare, but not that the whole tag is rare. So actually I was quite wrong in my initial comment on this issue, where I meant the opposite stuff is more important compared to the priorisation.
You are also completely right when you say that "bicycle:backward" is different to cycleway=opposite*. I was not aware of the strange "bicycle:backward=no" definition: "when a road has a oneway cycleway next to it that must be used, and a cyclelane in the other direction". So in the "no" case there should be an impact on the prioritisation in both directions, and ignore any oneway restriction in the common bicycle encoder. In the bicycle:backward="yes" case only the oneway restriction gets overruled.
The priority aspect of this issue is still open. I do not intend to make a pull request now, maybe I'll look at it in Winter. I believe that it will be not that easy to get consistent priority handling.
Thanks for the reminder. I'm going to provide a simple PR without the priority aspect. The reason is that we are already accepting cycleway:oposite_lane currently without priority downgrade and it is reasonanable to hande cycleway:left and cycleway:right the same way.
Activity
karussell commentedon Nov 4, 2014
Do you mean this for oneway stuff or for changed priority due to the different safety?
ratrun commentedon Nov 5, 2014
More important is support for the oneway stuff in order to avoid longer detours. If possible priority handling can also be implemented, although it is not easily possible to decide what to prefer for which kind of bike. E.g. a racebike rider probably will not like to go against a oneway.
karussell commentedon Mar 2, 2015
Hmmh, the problem is that left and right is country dependent if we want to find out the oneway stuff, right?
karussell commentedon Mar 2, 2015
Or is it identical to the :forward and :backward stuff? #205
ratrun commentedon Mar 2, 2015
I think that the oneway aspect of this issue (values=opposite*) is identical to #205. After making some overpass queries I found out that the usage of #205 (bicycle:backward) is much more common compared to the cycleway:left or cycleway:right usage with "opposite". I cannot see any country dependent aspect. It does not matter if the car traffic runs on the left or on the right side.
Besides the oneway aspect of this issue there is the priority handling aspect, which eventually should be handled differently for every kind of bike. Here I see some relation with one of the aspects of #330, where the highway classification tag, if present, should have some influence on the priorisation. E.g. highway=primary together with some cycleway "lane, track ..." tag should not lead to increased preference, especially when comparing to an ordinary highway=residential or highway=unclassified without any cycleway. The same is true if the cycleway is running opposite to a oneway. We should not prefer such a cycleway. I quickly checked the code, I could not find any part where we are rating down the priority in these cases. I know people, which claim to have statistics, which say that these kind of cycleways are extremly dangerous for a cyclist. I believe that they might be right.
karussell commentedon Mar 3, 2015
Okay, my bad, so it is entirely dependent on the 'tagging direction'
I've fixed #205, will include bicycle:backward now and handle the prioritization after 0.4
karussell commentedon Mar 3, 2015
Hmmh, according to the wiki the bicycle:backward has a different meaning.
karussell commentedon Mar 3, 2015
Maybe you have some direct link with current wrong behaviour? (regarding access restriction)
BTW: The cycleway:left/right is not that rare (see here).
ratrun commentedon Mar 3, 2015
In my last comment I meant that cycleway:left and cycleway:right with the value opposite* are rare, but not that the whole tag is rare. So actually I was quite wrong in my initial comment on this issue, where I meant the opposite stuff is more important compared to the priorisation.
With overpass turbo I found this example as testcase: http://www.openstreetmap.org/way/160978261 for a cycleway_left opposite_lane
and here is a graphhopper link:
https://graphhopper.com/maps/?point=48.896183%2C9.188351&point=48.893157%2C9.190096&vehicle=bike&elevation=true&layer=Lyrk
You are also completely right when you say that "bicycle:backward" is different to cycleway=opposite*. I was not aware of the strange "bicycle:backward=no" definition: "when a road has a oneway cycleway next to it that must be used, and a cyclelane in the other direction". So in the "no" case there should be an impact on the prioritisation in both directions, and ignore any oneway restriction in the common bicycle encoder. In the bicycle:backward="yes" case only the oneway restriction gets overruled.
karussell commentedon Mar 3, 2015
Okay, thanks
Yeah, super strange. But now implemented ;)
so if bicycle:backward is existent a possible oneway=true tag is ignored
karussell commentedon Jul 28, 2015
Was this already implemented in some pull request @ratrun ? If not, do you intend to propose one? Otherwise I would postpone this issue ...
ratrun commentedon Jul 30, 2015
The priority aspect of this issue is still open. I do not intend to make a pull request now, maybe I'll look at it in Winter. I believe that it will be not that easy to get consistent priority handling.
karussell commentedon Aug 3, 2015
Ok, thanks! Postponing for now
ratrun commentedon Dec 6, 2016
Thanks for the reminder. I'm going to provide a simple PR without the priority aspect. The reason is that we are already accepting
cycleway:oposite_lanecurrently without priority downgrade and it is reasonanable to handecycleway:leftandcycleway:rightthe same way.Accept keys "cycleway:left" and "cycleway:right" with "opposite" valu…
Accept keys "cycleway:left" and "cycleway:right" with "opposite" valu…
Accept keys "cycleway:left" and "cycleway:right" with "opposite" valu…
AllroadsNL commentedon Sep 23, 2019
ignored cycleway:left lane
situation
Still not fixed!
People use routing engine to test, control, because it is not fixed people try to fix it by setting wrong tags.
ratrun commentedon Oct 26, 2019
There is a bug with bicycle:forward=use_sidepath, this is considered as one-way. I plan to provide a pull request for this.
Improvements for bicycle use_sidepath value taggings. See #280 (#1769)
karussell commentedon Jan 3, 2022
Is this fixed now?
ratrun commentedon Jan 3, 2022
Yes, I believe that this issue can be closed.
more robust language selection and avoid awkward fallback, fixes grap…