From 188280b448b16131d7819e8ab659ed2641f4017c Mon Sep 17 00:00:00 2001 From: quaelnix <122357328+quaelnix@users.noreply.github.com> Date: Mon, 17 Jul 2023 14:48:16 +0200 Subject: [PATCH] Fix regression in trekking profile The 'avoid_path' logic which was added in https://github.com/abrensch/brouter/commit/89b71c2bfbffe885ad4f6d59b697161f4abaa514 ignores the cycleroute logic and makes no sense. --- misc/profiles2/trekking.brf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/misc/profiles2/trekking.brf b/misc/profiles2/trekking.brf index 011ee43..a08e361 100644 --- a/misc/profiles2/trekking.brf +++ b/misc/profiles2/trekking.brf @@ -300,8 +300,7 @@ assign costfactor # else if ( highway=track|road|path|footway ) then ( - if ( and highway=path avoid_path ) then ( 10.0 ) - else if ( tracktype=grade1 ) then ( if probablyGood then 1.0 else 1.3 ) + if ( tracktype=grade1 ) then ( if probablyGood then 1.0 else 1.3 ) else if ( tracktype=grade2 ) then ( if probablyGood then 1.1 else 2.0 ) else if ( tracktype=grade3 ) then ( if probablyGood then 1.5 else 3.0 ) else if ( tracktype=grade4 ) then ( if probablyGood then 2.0 else 5.0 )