Also consider cycleway:left:oneway & cycleway:right:oneway in onewaypenalty

This commit is contained in:
Totorrr 2022-08-27 02:49:07 +02:00
parent ef73d468c0
commit df19fcf891
3 changed files with 6 additions and 0 deletions

View file

@ -142,6 +142,8 @@ assign onewaypenalty =
else if ( cycleway:left=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 ( 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 ( cycleway:left:oneway=no ) then 0
else if ( cycleway:right:oneway=no ) then 0
else if ( junction=roundabout|circular ) then 60 else if ( junction=roundabout|circular ) then 60
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

View file

@ -138,6 +138,8 @@ assign onewaypenalty =
else if ( cycleway:left=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 ( 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 ( cycleway:left:oneway=no ) then 0
else if ( cycleway:right:oneway=no ) then 0
else if ( junction=roundabout|circular ) then 60 else if ( junction=roundabout|circular ) then 60
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

View file

@ -159,6 +159,8 @@ assign onewaypenalty =
else if ( cycleway:left=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 ( 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 ( cycleway:left:oneway=no ) then 0
else if ( cycleway:right:oneway=no ) then 0
else if ( junction=roundabout|circular ) then 60 else if ( junction=roundabout|circular ) then 60
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