Skip to content

Commit

Permalink
Merge pull request #471 from Totorrr/profiles-no-total-access-cyclero…
Browse files Browse the repository at this point in the history
…utes

Remove cycleroute always having access granted
  • Loading branch information
afischerdev committed Apr 2, 2023
2 parents 5d56bb9 + e2c6811 commit b7842e1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
19 changes: 10 additions & 9 deletions misc/profiles2/fastbike.brf
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
4 changes: 2 additions & 2 deletions misc/profiles2/trekking.brf
Expand Up @@ -112,8 +112,7 @@ assign defaultaccess =
# calculate logical bike access
#
assign bikeaccess =
if any_cycleroute then true
else if bicycle= then
if bicycle= then
(
if bicycle_road=yes then true
else if vehicle= then ( if highway=footway then false else defaultaccess )
Expand All @@ -137,6 +136,7 @@ assign footaccess =
assign accesspenalty =
if bikeaccess then 0
else if footaccess then 4
else if any_cycleroute then 15
else 10000

#
Expand Down

0 comments on commit b7842e1

Please sign in to comment.