From 566b69350ca4b785cacf89dc20f2c9d2c8744231 Mon Sep 17 00:00:00 2001 From: afischerdev Date: Wed, 13 Nov 2024 10:39:15 +0100 Subject: [PATCH] add variable to profiles --- misc/profiles2/car-vario.brf | 2 ++ misc/profiles2/gravel.brf | 8 +++++--- misc/profiles2/hiking-mountain.brf | 2 ++ misc/profiles2/moped.brf | 4 +++- misc/profiles2/mtb.brf | 3 +++ misc/profiles2/river.brf | 2 ++ misc/profiles2/trekking.brf | 2 ++ 7 files changed, 19 insertions(+), 4 deletions(-) diff --git a/misc/profiles2/car-vario.brf b/misc/profiles2/car-vario.brf index 34e5be1..87aeac5 100644 --- a/misc/profiles2/car-vario.brf +++ b/misc/profiles2/car-vario.brf @@ -17,6 +17,8 @@ assign avoid_toll = false # %avoid_toll% | Avoid paid roads | boolean assign avoid_unpaved = false # %avoid_unpaved% | Avoid unpaved roads, if possible | boolean assign avoid_motorways = false # %avoid_motorways% | Avoid motorways | boolean +assign use_dynamic_range = false # %use_dynamic_range% | Enable distant start/end points | boolean + # Kinematic model parameters assign vmax = 90 # %vmax% | Target speed (in km/h) | number assign recup_efficiency = 0.7 # %recup_efficiency% | (ratio) | number diff --git a/misc/profiles2/gravel.brf b/misc/profiles2/gravel.brf index 3468ae0..5485234 100644 --- a/misc/profiles2/gravel.brf +++ b/misc/profiles2/gravel.brf @@ -8,6 +8,8 @@ assign turnInstructionRoundabouts true # %turnInstructionRoundabouts% | Special assign considerTurnRestrictions true assign turnInstructionMode 1 # %turnInstructionMode% | Mode for the generated turn-by-turn directions | [0=none, 1=auto-choose, 2=locus-style, 3=osmand-style, 4=comment-style, 5=gpsies-style, 6=oruxmaps-style] +assign use_dynamic_range = false # %use_dynamic_range% | Enable distant start/end points | boolean + #assign processUnusedTags true assign pass1coefficient 4 assign validForBikes true @@ -48,7 +50,7 @@ assign uphillcutoff switch bad_when_steep ( min 1.5 uphillcutoff ) uphillcut assign any_cycleway or cycleway=track|lane|shared_lane|shared or and cycleway:right=track|lane|shared_lane reversedirection= and cycleway:left=track|lane|shared_lane reversedirection=yes - + assign any_cycleroute or route_bicycle_icn=yes or route_bicycle_ncn=yes or route_bicycle_rcn=yes route_bicycle_lcn=yes assign turncost switch junction=roundabout 15 65 @@ -166,7 +168,7 @@ assign is_paved assign initialcost multiply initialcost ( switch and prefer_unpaved_paths is_paved 2 1 ) - + assign smoothnesspenalty multiply smoothnesspenalty ( switch and prefer_unpaved_paths is_paved 2 1 ) @@ -231,7 +233,7 @@ assign noforestpenalty switch estimated_forest_class=6 1.0 1 1 assign townpenalty - switch avoid_towns + switch avoid_towns switch estimated_town_class= 1.0 switch estimated_town_class=1 1.2 switch estimated_town_class=2 1.4 diff --git a/misc/profiles2/hiking-mountain.brf b/misc/profiles2/hiking-mountain.brf index 688da66..d54aa2c 100644 --- a/misc/profiles2/hiking-mountain.brf +++ b/misc/profiles2/hiking-mountain.brf @@ -44,6 +44,8 @@ assign initialcost_value 0 # not used now assign allow_steps true # %allow_steps% | Set to false to disallow steps | boolean assign allow_ferries true # %allow_ferries% | set to false to disallow ferries | boolean +assign use_dynamic_range false # %use_dynamic_range% | Enable distant start/end points | boolean + assign cost_of_unknown 2 # 2 as default # diff --git a/misc/profiles2/moped.brf b/misc/profiles2/moped.brf index 50304de..e270fbf 100644 --- a/misc/profiles2/moped.brf +++ b/misc/profiles2/moped.brf @@ -16,7 +16,9 @@ assign uphillcutoff 0 assign validForBikes 1 assign validForCars 1 -assign turnInstructionMode = 1 # %turnInstructionMode% | Mode for the generated turn instructions | [0=none, 1=auto-choose, 2=locus-style, 3=osmand-style, 4=comment-style, 5=gpsies-style, 6=orux-style, 7=locus-old-style] +assign use_dynamic_range = false # %use_dynamic_range% | Enable distant start/end points | boolean + +assign turnInstructionMode = 1 # %turnInstructionMode% | Mode for the generated turn instructions | [0=none, 1=auto-choose, 2=locus-style, 3=osmand-style, 4=comment-style, 5=gpsies-style, 6=orux-style, 7=locus-old-style] ---context:way # following code refers to way-tags diff --git a/misc/profiles2/mtb.brf b/misc/profiles2/mtb.brf index 1b360cb..3e52cc5 100644 --- a/misc/profiles2/mtb.brf +++ b/misc/profiles2/mtb.brf @@ -11,6 +11,9 @@ # bstart /global ---context:global + + assign use_dynamic_range = false # %use_dynamic_range% | Enable distant start/end points | boolean + assign iswet 0 # 0 as default, *) flag for weather conditions assign turnInstructionMode = 1 # 0=none, 1=auto-choose, 2=locus-style, 3=osmand-style assign cycleroutes_pref 0.2 # also CRP *) costfactor penalty for not being cycleroute diff --git a/misc/profiles2/river.brf b/misc/profiles2/river.brf index 80b46cc..45fa29f 100644 --- a/misc/profiles2/river.brf +++ b/misc/profiles2/river.brf @@ -2,6 +2,8 @@ # the elevation parameters +assign use_dynamic_range = false # %use_dynamic_range% | Enable distant start/end points | boolean + assign downhillcost 0 assign downhillcutoff 1.5 assign uphillcost 0 diff --git a/misc/profiles2/trekking.brf b/misc/profiles2/trekking.brf index b4aa6ed..5e7e400 100644 --- a/misc/profiles2/trekking.brf +++ b/misc/profiles2/trekking.brf @@ -15,6 +15,8 @@ assign ignore_cycleroutes = false # %ignore_cycleroutes% | Set true for assign stick_to_cycleroutes = false # %stick_to_cycleroutes% | Set true to just follow cycleroutes | boolean assign avoid_unsafe = false # %avoid_unsafe% | Set true to avoid standard highways | boolean +assign use_dynamic_range = false # %use_dynamic_range% | Enable distant start/end points | boolean + assign consider_noise = false # %consider_noise% | Activate to prefer a low-noise route | boolean assign consider_river = false # %consider_river% | Activate to prefer a route along rivers, lakes, etc. | boolean assign consider_forest = false # %consider_forest% | Activate to prefer a route in forest or parks | boolean