update trekking for db tags
This commit is contained in:
parent
e66468b091
commit
89b71c2bfb
1 changed files with 78 additions and 10 deletions
|
@ -9,14 +9,24 @@
|
||||||
assign validForBikes = true
|
assign validForBikes = true
|
||||||
|
|
||||||
# Use the following switches to change behaviour
|
# Use the following switches to change behaviour
|
||||||
assign allow_steps = true # %allow_steps% | Set to false to disallow steps | boolean
|
assign allow_steps = true # %allow_steps% | Set false to disallow steps | boolean
|
||||||
assign allow_ferries = true # %allow_ferries% | set to false to disallow ferries | boolean
|
assign allow_ferries = true # %allow_ferries% | Set false to disallow ferries | boolean
|
||||||
assign ignore_cycleroutes = false # %ignore_cycleroutes% | Set to true for better elevation results | boolean
|
assign ignore_cycleroutes = false # %ignore_cycleroutes% | Set true for better elevation results | boolean
|
||||||
assign stick_to_cycleroutes = false # %stick_to_cycleroutes% | Set to true to just follow cycleroutes | boolean
|
assign stick_to_cycleroutes = false # %stick_to_cycleroutes% | Set true to just follow cycleroutes | boolean
|
||||||
assign avoid_unsafe = false # %avoid_unsafe% | Set to true to avoid standard highways | boolean
|
assign avoid_unsafe = false # %avoid_unsafe% | Set true to avoid standard highways | boolean
|
||||||
|
assign avoid_path = false # %avoid_path% | Set true to avoid pathes | boolean
|
||||||
|
|
||||||
|
assign consider_noise = false # %consider_noise% | Enable to favor a low-noise route | boolean
|
||||||
|
assign consider_river = false # %consider_river% | Enable to favor a route along rivers or sees | boolean
|
||||||
|
assign consider_forest = false # %consider_forest% | Enable to favor a route in forest or parks | boolean
|
||||||
|
assign consider_town = false # %consider_town% | Enable to bypass cities / big towns as far as possible | boolean
|
||||||
|
assign consider_traffic = false # %consider_traffic% | Enable to consider traffic estimates | boolean
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Change elevation parameters
|
# Change elevation parameters
|
||||||
assign consider_elevation = true # %consider_elevation% | Set to false to ignore elevation in routing | boolean
|
assign consider_elevation = true # %consider_elevation% | Set true to favor a route with few elevation meters | boolean
|
||||||
|
|
||||||
assign downhillcost = 60 # %downhillcost% | Cost for going downhill | number
|
assign downhillcost = 60 # %downhillcost% | Cost for going downhill | number
|
||||||
assign downhillcutoff = 1.5 # %downhillcutoff% | Gradients below this value in percents are not counted. | number
|
assign downhillcutoff = 1.5 # %downhillcutoff% | Gradients below this value in percents are not counted. | number
|
||||||
assign uphillcost = 0 # %uphillcost% | Cost for going uphill | number
|
assign uphillcost = 0 # %uphillcost% | Cost for going uphill | number
|
||||||
|
@ -35,10 +45,10 @@ assign bikerPower = 100 # %bikerPower% | Average power (in W) provided by the
|
||||||
# Turn instructions settings
|
# Turn instructions settings
|
||||||
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 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 turnInstructionCatchingRange = 40 # %turnInstructionCatchingRange% | Within this distance (in m) several turning instructions are combined into one and the turning angles are better approximated to the general direction | number
|
assign turnInstructionCatchingRange = 40 # %turnInstructionCatchingRange% | Within this distance (in m) several turning instructions are combined into one and the turning angles are better approximated to the general direction | number
|
||||||
assign turnInstructionRoundabouts = true # %turnInstructionRoundabouts% | Set to "false" to avoid generating special turning instructions for roundabouts | boolean
|
assign turnInstructionRoundabouts = true # %turnInstructionRoundabouts% | Set "false" to avoid generating special turning instructions for roundabouts | boolean
|
||||||
assign considerTurnRestrictions = true # %considerTurnRestrictions% | Set to true to take turn restrictions into account | boolean
|
assign considerTurnRestrictions = true # %considerTurnRestrictions% | Set true to take turn restrictions into account | boolean
|
||||||
|
|
||||||
assign processUnusedTags = false # %processUnusedTags% | Set to true to output unused tags in data tab | boolean
|
assign processUnusedTags = false # %processUnusedTags% | Set true to output unused tags in data tab | boolean
|
||||||
|
|
||||||
---context:way # following code refers to way-tags
|
---context:way # following code refers to way-tags
|
||||||
|
|
||||||
|
@ -169,6 +179,57 @@ assign onewaypenalty =
|
||||||
)
|
)
|
||||||
else 0.0
|
else 0.0
|
||||||
|
|
||||||
|
# add estimate tags
|
||||||
|
assign traffic_penalty
|
||||||
|
switch consider_traffic
|
||||||
|
switch estimated_traffic_class= 0
|
||||||
|
switch estimated_traffic_class=1|2 0.2
|
||||||
|
switch estimated_traffic_class=3 0.4
|
||||||
|
switch estimated_traffic_class=4 0.6
|
||||||
|
switch estimated_traffic_class=5 0.8
|
||||||
|
switch estimated_traffic_class=6|7 1 99 0
|
||||||
|
|
||||||
|
|
||||||
|
assign noise_penalty
|
||||||
|
switch consider_noise
|
||||||
|
switch estimated_noise_class= 0
|
||||||
|
switch estimated_noise_class=1 0.3
|
||||||
|
switch estimated_noise_class=2 0.5
|
||||||
|
switch estimated_noise_class=3 0.8
|
||||||
|
switch estimated_noise_class=4 1.4
|
||||||
|
switch estimated_noise_class=5 1.7
|
||||||
|
switch estimated_noise_class=6 2 0 0
|
||||||
|
|
||||||
|
assign no_river_penalty
|
||||||
|
switch consider_river
|
||||||
|
switch estimated_river_class= 2
|
||||||
|
switch estimated_river_class=1 1.3
|
||||||
|
switch estimated_river_class=2 1
|
||||||
|
switch estimated_river_class=3 0.7
|
||||||
|
switch estimated_river_class=4 0.4
|
||||||
|
switch estimated_river_class=5 0.1
|
||||||
|
switch estimated_river_class=6 0 99 0
|
||||||
|
|
||||||
|
assign no_forest_penalty
|
||||||
|
switch consider_forest
|
||||||
|
switch estimated_forest_class= 1
|
||||||
|
switch estimated_forest_class=1 0.5
|
||||||
|
switch estimated_forest_class=2 0.4
|
||||||
|
switch estimated_forest_class=3 0.25
|
||||||
|
switch estimated_forest_class=4 0.15
|
||||||
|
switch estimated_forest_class=5 0.1
|
||||||
|
switch estimated_forest_class=6 0 99 0
|
||||||
|
|
||||||
|
assign town_penalty
|
||||||
|
switch consider_town
|
||||||
|
switch estimated_town_class= 0
|
||||||
|
switch estimated_town_class=1 0.5
|
||||||
|
switch estimated_town_class=2 0.9
|
||||||
|
switch estimated_town_class=3 1.2
|
||||||
|
switch estimated_town_class=4 1.3
|
||||||
|
switch estimated_town_class=5 1.4
|
||||||
|
switch estimated_town_class=6 1.6 99 0
|
||||||
|
|
||||||
#
|
#
|
||||||
# calculate the cost-factor, which is the factor
|
# calculate the cost-factor, which is the factor
|
||||||
# by which the distance of a way-segment is multiplied
|
# by which the distance of a way-segment is multiplied
|
||||||
|
@ -197,6 +258,12 @@ assign costfactor
|
||||||
#
|
#
|
||||||
else min 9999
|
else min 9999
|
||||||
|
|
||||||
|
add town_penalty
|
||||||
|
add no_forest_penalty
|
||||||
|
add no_river_penalty
|
||||||
|
add noise_penalty
|
||||||
|
add traffic_penalty
|
||||||
|
|
||||||
#
|
#
|
||||||
# apply oneway-and access-penalties
|
# apply oneway-and access-penalties
|
||||||
#
|
#
|
||||||
|
@ -233,7 +300,8 @@ assign costfactor
|
||||||
#
|
#
|
||||||
else if ( highway=track|road|path|footway ) then
|
else if ( highway=track|road|path|footway ) then
|
||||||
(
|
(
|
||||||
if ( tracktype=grade1 ) then ( if probablyGood then 1.0 else 1.3 )
|
if ( and highway=path avoid_path ) then ( 10.0 )
|
||||||
|
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 )
|
||||||
|
|
Loading…
Reference in a new issue