Merge pull request #570 from Totorrr/profiles-oneway-bicycle-leftright

Also consider cycleway:left:oneway & cycleway:right:oneway in onewaypenalty
This commit is contained in:
afischerdev 2023-06-29 11:39:59 +02:00 committed by GitHub
commit cada37b4de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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