Remove cycleroute always having access granted
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 trekking 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.
This commit is contained in:
parent
13a41bd9f8
commit
35f4e3312e
1 changed files with 2 additions and 2 deletions
|
@ -112,8 +112,7 @@ assign defaultaccess =
|
||||||
# calculate logical bike access
|
# calculate logical bike access
|
||||||
#
|
#
|
||||||
assign bikeaccess =
|
assign bikeaccess =
|
||||||
if any_cycleroute then true
|
if bicycle= then
|
||||||
else if bicycle= then
|
|
||||||
(
|
(
|
||||||
if bicycle_road=yes then true
|
if bicycle_road=yes then true
|
||||||
else if vehicle= then ( if highway=footway then false else defaultaccess )
|
else if vehicle= then ( if highway=footway then false else defaultaccess )
|
||||||
|
@ -137,6 +136,7 @@ assign footaccess =
|
||||||
assign accesspenalty =
|
assign accesspenalty =
|
||||||
if bikeaccess then 0
|
if bikeaccess then 0
|
||||||
else if footaccess then 4
|
else if footaccess then 4
|
||||||
|
else if any_cycleroute then 15
|
||||||
else 10000
|
else 10000
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue