fixed missing penalty for certain footways
This commit is contained in:
parent
cf5479a261
commit
be1319a331
2 changed files with 4 additions and 3 deletions
|
@ -6,6 +6,7 @@ assign processUnusedTags = true
|
|||
---context:way # following code refers to way-tags
|
||||
|
||||
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
|
||||
assign initialcost = 0
|
||||
|
|
|
@ -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 ispaved = surface=paved|asphalt|concrete|paving_stones
|
||||
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
|
||||
(
|
||||
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 bicycle=private|no|dismount
|
||||
|
|
Loading…
Reference in a new issue