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
|
---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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue