From be1319a33103449c315cd3be718e874822529fa0 Mon Sep 17 00:00:00 2001 From: Arndt Brenschede Date: Sat, 15 Feb 2020 15:51:15 +0100 Subject: [PATCH] fixed missing penalty for certain footways --- misc/profiles2/dummy.brf | 3 ++- misc/profiles2/trekking.brf | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/misc/profiles2/dummy.brf b/misc/profiles2/dummy.brf index 3f00fc6..3fb4ba1 100644 --- a/misc/profiles2/dummy.brf +++ b/misc/profiles2/dummy.brf @@ -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 diff --git a/misc/profiles2/trekking.brf b/misc/profiles2/trekking.brf index df4b06a..b8f3390 100644 --- a/misc/profiles2/trekking.brf +++ b/misc/profiles2/trekking.brf @@ -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