# Profile for flat hiking routes
#
# See https://github.com/poutnikl/Brouter-profiles for
# more variants and poutnik's profile collection
# *** Based on Trekking profile, added flag driven customizations
# 10/6/2015 v1.7.2 BETA - Fixed general way access penalties
# See bottom for Changelog and verbose comments.
---context:global
assign consider_elevation 1 # 1 to prefer flat routes
assign shortest_way 0 # 0 as default
assign iswet 0 # 0 as default, 1 tries to prevent muddy boots and wet buttocks
assign prefer_hiking_routes 1 # 1 as default, gives penalty to way not being hiking route and cancels route turncost
assign stick_to_hiking_routes 0 # 0 as default, as above, but gives higher penalty costfactor + way/node initial costs
assign non_hiking_route_penalty 0.15 # 0.25 as default, used with prefer_hiking_routes
assign non_sticky_route_penalty 0.5 # 1.0 as default, used stick_to_hiking_routes #v1.5
#SAC - mountain hiking - see http://wiki.openstreetmap.org/wiki/Key:sac_scale
assign SAC_scale_limit 3 # 0..6, 0 to avoid any SAC paths, 1 for T1 as maximum, 6 for T6 as maximum
# all paths with sac_scale higher than SAC_scale_limit are forbidden.
assign SAC_scale_preferred 1 # The same, but the preferred SAC scale level. Level below are slightly, above strongly penalized
assign SAC_access_penalty 9000 # costfactor 9999 means the most horrible but allowed road.,
# 100000=forbidden. This makes difference if forbidden way is the only option.
#orientation/decision penalties, not used for preferred hiking routes
assign turncost_value 0 # 20 as default, not used now
assign initialcost_value 0 # 50 as default, not used now
#less frequently changed flags
assign allow_steps 1 # 1 as default
assign allow_ferries 1 # 1 as default
assign cost_of_unknown 2 # 2 as default
#
assign elevationpenaltybuffer 5 # 5 as default
assign elevationmaxbuffer 10 # 10 as default
assign elevationbufferreduce 0.0 # 0.0 as default
# as initial point, considered flat speed 4 km/h, climbing speed 600 m /h
assign uphillcostvalue 30
assign uphillcutoffvalue 999
assign downhillcutoffvalue 999
assign downhillcostvalue 10
assign downhillcost switch consider_elevation downhillcostvalue 0
assign downhillcutoff switch consider_elevation downhillcutoffvalue 0
assign uphillcost switch consider_elevation uphillcostvalue 0
assign uphillcutoff switch consider_elevation uphillcutoffvalue 0
assign validForFoot 1
assign hr_preferred or prefer_hiking_routes stick_to_hiking_routes
#Penalizing SAC routes below (K1) and above(K2) preferred SAC scale
#see http://wiki.openstreetmap.org/wiki/