diff --git a/src-tauri/gen/android/app/src/main/assets/brouter/profiles2/trekking.brf b/src-tauri/gen/android/app/src/main/assets/brouter/profiles2/trekking.brf index b4fd21b..45b59f5 100644 --- a/src-tauri/gen/android/app/src/main/assets/brouter/profiles2/trekking.brf +++ b/src-tauri/gen/android/app/src/main/assets/brouter/profiles2/trekking.brf @@ -130,16 +130,17 @@ assign initialclassifier = # this is added to the total cost each time the costfactor # changed # -# Adventure penalty: keep the router off fords, abandoned (grade5) tracks and -# bad/invisible trails unless the rider opts into adventure mode (%allow_adventure%). +# Adventure penalty (added into costfactor below): keep the router off fords, abandoned +# (grade5) tracks and bad/invisible trails unless the rider opts into adventure mode +# (%allow_adventure%). 10000 matches the profile's "excluded way" costfactor. assign adventurepenalty = if allow_adventure then 0 - else add ( if ford=yes|stepping_stones then 100000 else 0 ) - ( if or tracktype=grade5 trail_visibility=bad|horrible|no then 20000 else 0 ) + else add ( if ford=yes|stepping_stones then 10000 else 0 ) + ( if or tracktype=grade5 trail_visibility=bad|horrible|no then 5000 else 0 ) assign initialcost = - add adventurepenalty - ( if ( equal initialclassifier classifier_ferry ) then 10000 else 0 ) + if ( equal initialclassifier classifier_ferry ) then 10000 + else 0 # # implicit access here just from the motorroad tag @@ -306,6 +307,7 @@ assign costfactor add no_river_penalty add noise_penalty add traffic_penalty + add adventurepenalty # # apply oneway-and access-penalties diff --git a/tools/brouter-web-staging/profiles2/trekking.brf b/tools/brouter-web-staging/profiles2/trekking.brf index b4fd21b..45b59f5 100644 --- a/tools/brouter-web-staging/profiles2/trekking.brf +++ b/tools/brouter-web-staging/profiles2/trekking.brf @@ -130,16 +130,17 @@ assign initialclassifier = # this is added to the total cost each time the costfactor # changed # -# Adventure penalty: keep the router off fords, abandoned (grade5) tracks and -# bad/invisible trails unless the rider opts into adventure mode (%allow_adventure%). +# Adventure penalty (added into costfactor below): keep the router off fords, abandoned +# (grade5) tracks and bad/invisible trails unless the rider opts into adventure mode +# (%allow_adventure%). 10000 matches the profile's "excluded way" costfactor. assign adventurepenalty = if allow_adventure then 0 - else add ( if ford=yes|stepping_stones then 100000 else 0 ) - ( if or tracktype=grade5 trail_visibility=bad|horrible|no then 20000 else 0 ) + else add ( if ford=yes|stepping_stones then 10000 else 0 ) + ( if or tracktype=grade5 trail_visibility=bad|horrible|no then 5000 else 0 ) assign initialcost = - add adventurepenalty - ( if ( equal initialclassifier classifier_ferry ) then 10000 else 0 ) + if ( equal initialclassifier classifier_ferry ) then 10000 + else 0 # # implicit access here just from the motorroad tag @@ -306,6 +307,7 @@ assign costfactor add no_river_penalty add noise_penalty add traffic_penalty + add adventurepenalty # # apply oneway-and access-penalties