Fix regression in trekking profile

The 'avoid_path' logic which was added in 89b71c2bfb ignores the cycleroute logic and makes no sense.
This commit is contained in:
quaelnix 2023-07-17 14:48:16 +02:00 committed by GitHub
parent 9125481aed
commit 188280b448
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -300,8 +300,7 @@ assign costfactor
# #
else if ( highway=track|road|path|footway ) then else if ( highway=track|road|path|footway ) then
( (
if ( and highway=path avoid_path ) then ( 10.0 ) if ( tracktype=grade1 ) then ( if probablyGood then 1.0 else 1.3 )
else 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=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=grade3 ) then ( if probablyGood then 1.5 else 3.0 )
else if ( tracktype=grade4 ) then ( if probablyGood then 2.0 else 5.0 ) else if ( tracktype=grade4 ) then ( if probablyGood then 2.0 else 5.0 )