As you may know, Brouter always try to find "shortest route".
"Shortest", as all priorities and penalties
are recalculated as effective length of a way segment.
3 parameters are important for a way segment evaluation
Costfactor - is the profile evaluation of a way quality for the profile
purpose. costfactor >=10000 mean forbidden road, excluded from
consideration.
Turncost - is additional cost for every turn, it is effective length
addition of sharp right angle turn ( Angle dependent, 0 .. 2*turncost )
Initialcost - is additional one time cost of way segment of given
quality. Zero physical length has Initialcost effective length.
Additionally, OSM nodes ( points of a special meaning )
have Initialcost as well ( e.g. traffic lights can have, or stop sign,
or toll booth etc )
Raw way segment effective length = physical way segment length * Costfactor.
E.g. 10 km of the bestroad is taken as 10 km, while 10 km of a bad road
can be taken as e.g. 30 km.
Then there is added Turncost and InitialCost
For elevation, the cutoff is subtracted from the slope, it is then
multiplied by the segment length, resulting in the effective elevation
difference.
this difference multiplied by elevation cost gives additional length to
the effective length. ( this is more or less valid
for larger elevation differences and way length. For small ones and
local changes, it is complicated by the elevation buffer functionality,
what I will left aside now ).
finally Node initial costs are added.
All is summed along the route , giving final cost, what is taken as
effective route length.
the Brouter choose the one with the lowest cost.
Poutnik
> --
> 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
> <mailto:
osm-android-biker...@googlegroups.com>.
> For more options, visit
https://groups.google.com/d/optout.