Skip to content

Commit a501b48

Browse files
authored
Merge pull request abrensch#867 from Totorrr/profile_fastbike_use_sidepath
profile: port of use_sidepath logic from trekking into fastbike
2 parents 11b347b + 037b338 commit a501b48

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

misc/profiles2/fastbike.brf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,16 @@ assign bikeaccess =
9595
switch vehicle=
9696
( if highway=footway then false else defaultaccess )
9797
not vehicle=private|no
98-
not or bicycle=private or bicycle=no bicycle=dismount
98+
not or bicycle=private or bicycle=no or bicycle=dismount bicycle=use_sidepath
9999

100100
#
101101
# calculate logical foot access
102102
#
103103
assign footaccess =
104-
or bikeaccess
105-
or bicycle=dismount
106-
switch foot=
107-
defaultaccess
108-
not or foot=private foot=no
104+
or bicycle=dismount
105+
switch foot=
106+
defaultaccess
107+
not or foot=private or foot=no foot=use_sidepath
109108

110109
#
111110
# if not bike-, but foot-acess, just a moderate penalty,
@@ -150,6 +149,7 @@ assign onewaypenalty =
150149
cycleway:right=opposite|opposite_lane|opposite_track
151150
) then 0
152151
else if ( oneway:bicycle=no ) then 0
152+
else if ( not footaccess ) then 100
153153
else if ( junction=roundabout|circular ) then 60
154154
else if ( highway=primary|primary_link ) then 50
155155
else if ( highway=secondary|secondary_link ) then 30

0 commit comments

Comments
 (0)