Skip to content

Commit

Permalink
Remove cycleroute always having access granted
Browse files Browse the repository at this point in the history
Some bicycle routes can have portions which are not accessible.

Potential reasons for this:
 - temporary construction work on the ways (sometimes for months),
 - local access change without simultaneous update of bicycle route relation
   (lack of mapper's knowledge or lack of time to redefine an updated route),  
 - ... 

This commit changes the fastbike profile so that being on a cycle route does 
not automatically mean "access granted" for bicycles. The normal access 
checkings are used instead.

However, the accesspenalty is set to 15 if the no-access way belongs to such a 
route, so that the way is not completely forbidden if there is no other 
alternative unavailable.
  • Loading branch information
Totorrr committed Oct 21, 2022
1 parent 35f4e33 commit e2c6811
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions misc/profiles2/fastbike.brf
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,13 @@ assign defaultaccess
# calculate logical bike access
#
assign bikeaccess =
or any_cycleroute
switch bicycle=
switch bicycle_road=yes
true
switch vehicle=
( if highway=footway then false else defaultaccess )
not vehicle=private|no
not or bicycle=private or bicycle=no bicycle=dismount
switch bicycle=
switch bicycle_road=yes
true
switch vehicle=
( if highway=footway then false else defaultaccess )
not vehicle=private|no
not or bicycle=private or bicycle=no bicycle=dismount

#
# calculate logical foot access
Expand All @@ -115,7 +114,9 @@ assign accesspenalty
0
switch footaccess
6
10000
switch any_cycleroute
15
10000

#
# handle one-ways. On primary roads, wrong-oneways should
Expand Down

0 comments on commit e2c6811

Please sign in to comment.