Merge pull request #268 from Totorrr/profiles-oneway-bicycle-leftright
Consider cycleway:left&right in onewaypenalty
This commit is contained in:
commit
609f62d6d5
3 changed files with 9 additions and 3 deletions
|
@ -139,6 +139,8 @@ assign onewaypenalty =
|
||||||
if ( badoneway ) then
|
if ( badoneway ) then
|
||||||
(
|
(
|
||||||
if ( cycleway=opposite|opposite_lane|opposite_track ) then 0
|
if ( cycleway=opposite|opposite_lane|opposite_track ) then 0
|
||||||
|
if ( cycleway:left=opposite|opposite_lane|opposite_track ) then 0
|
||||||
|
if ( cycleway:right=opposite|opposite_lane|opposite_track ) then 0
|
||||||
else if ( oneway:bicycle=no ) then 0
|
else if ( oneway:bicycle=no ) then 0
|
||||||
else if ( highway=primary|primary_link ) then 50
|
else if ( highway=primary|primary_link ) then 50
|
||||||
else if ( highway=secondary|secondary_link ) then 30
|
else if ( highway=secondary|secondary_link ) then 30
|
||||||
|
|
|
@ -134,6 +134,8 @@ assign onewaypenalty =
|
||||||
if ( badoneway ) then
|
if ( badoneway ) then
|
||||||
(
|
(
|
||||||
if ( cycleway=opposite|opposite_lane|opposite_track ) then 0
|
if ( cycleway=opposite|opposite_lane|opposite_track ) then 0
|
||||||
|
else if ( cycleway:left=opposite|opposite_lane|opposite_track ) then 0
|
||||||
|
else if ( cycleway:right=opposite|opposite_lane|opposite_track ) then 0
|
||||||
else if ( oneway:bicycle=no ) then 0
|
else if ( oneway:bicycle=no ) then 0
|
||||||
else if ( highway=primary|primary_link ) then 50
|
else if ( highway=primary|primary_link ) then 50
|
||||||
else if ( highway=secondary|secondary_link ) then 30
|
else if ( highway=secondary|secondary_link ) then 30
|
||||||
|
|
|
@ -156,6 +156,8 @@ assign onewaypenalty =
|
||||||
if ( badoneway ) then
|
if ( badoneway ) then
|
||||||
(
|
(
|
||||||
if ( cycleway=opposite|opposite_lane|opposite_track ) then 0
|
if ( cycleway=opposite|opposite_lane|opposite_track ) then 0
|
||||||
|
else if ( cycleway:left=opposite|opposite_lane|opposite_track ) then 0
|
||||||
|
else if ( cycleway:right=opposite|opposite_lane|opposite_track ) then 0
|
||||||
else if ( oneway:bicycle=no ) then 0
|
else if ( oneway:bicycle=no ) then 0
|
||||||
else if ( highway=primary|primary_link ) then 50
|
else if ( highway=primary|primary_link ) then 50
|
||||||
else if ( highway=secondary|secondary_link ) then 30
|
else if ( highway=secondary|secondary_link ) then 30
|
||||||
|
|
Loading…
Reference in a new issue