fixed missing penalty for certain footways

This commit is contained in:
Arndt Brenschede 2020-02-15 15:51:15 +01:00
parent cf5479a261
commit be1319a331
2 changed files with 4 additions and 3 deletions

View file

@ -6,6 +6,7 @@ assign processUnusedTags = true
---context:way # following code refers to way-tags ---context:way # following code refers to way-tags
assign costfactor assign costfactor
switch and highway= not route=ferry 100000 switch and highway= not route=ferry 100000 1
---context:node # following code refers to node tags ---context:node # following code refers to node tags
assign initialcost = 0

View file

@ -68,7 +68,7 @@ assign is_ldcr =
assign isbike = or bicycle_road=yes or bicycle=yes or or bicycle=permissive bicycle=designated lcn=yes assign isbike = or bicycle_road=yes or bicycle=yes or or bicycle=permissive bicycle=designated lcn=yes
assign ispaved = surface=paved|asphalt|concrete|paving_stones assign ispaved = surface=paved|asphalt|concrete|paving_stones
assign isunpaved = not or surface= or ispaved surface=fine_gravel|cobblestone assign isunpaved = not or surface= or ispaved surface=fine_gravel|cobblestone
assign probablyGood = or ispaved and isbike not isunpaved assign probablyGood = or ispaved and ( or isbike highway=footway ) not isunpaved
# #
@ -116,7 +116,7 @@ assign bikeaccess =
else if bicycle= then else if bicycle= then
( (
if bicycle_road=yes then true if bicycle_road=yes then true
else if vehicle= then defaultaccess else if vehicle= then ( if highway=footway then false else defaultaccess )
else not vehicle=private|no else not vehicle=private|no
) )
else not bicycle=private|no|dismount else not bicycle=private|no|dismount