Sure, it is possible. By default, they are equal to costfactor. You can notice the standard profiles do not use them.
But they are not really the
elevation cost.
They are rather slope dependent way quality costs.
--
You received this message because you are subscribed to the Google Groups "OSM Android bikerouting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osm-android-biker...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
E.g. Main roads may be wanted to have lowered cost downhill, as you can go really fast there. OTOH, they may be wanted to have increased cost uphill, as you are heavily breathing burnt fuel from passing cars, with slow or even erratic motion potentially dangerous due collisions.
---context:globalassign turnInstructionMode = 0 #0=noneassign pass1coefficient 1assign pass2coefficient -1assign considerTurnRestrictions trueassign uphillcostvalue 100assign uphillcutoffvalue 0.5assign downhillcutoffvalue 3.0assign downhillcostvalue 100---context:way#Needed for some unknown reason, usualy only used for voice hintsassign priorityclassifier = if highway= then 1 else 0assign turncost 0assign costfactor 1.0---context:nodeassign initialcost 0
ElevationCost = WayPhysicalLength * up(down)hillcost * AverageslopeAfterCutoffSubtract/100
Tou have confused Brouter variables up/downhillcost/cutoff, that Brouter uses for elevation cost calculations
with similarly names user variables up/downhillcost/cutoffvalue, that I use as intermittent values for the final Brouter variables.
Brouter does not know nor use up/downhillcost/cutoffvalue variables.
Sorry I do not quite understand, it is not mentioned anywhere here?
http://brouter.de/brouter/profile_developers_guide.txtI thought it calculates elevationcost automatically fromElevationCost = WayPhysicalLength * up(down)hillcost * AverageslopeAfterCutoffSubtract/100
It has given WayPhysicalLength, uphillcost and slope from the profile+datafile
-- Poutnik ( The Wanderer ) My Brouter profiles https://github.com/poutnikl/Brouter-profiles/wiki