abrensch / brouter

configurable OSM offline router with elevation awareness, Java + Android
MIT License
497 stars 118 forks source link

Avoid routing through fords #262

Open joernheissler opened 4 years ago

joernheissler commented 4 years ago

Brouter routes through fords, e.g.:

Could you please set a higher cost for fords, maybe based on depth and mode of transport?

Cheers :)

poutnikl commented 4 years ago

As an alternative, you can try

https://github.com/poutnikl/Brouter-profiles/blob/master/BikeProfiles/Trekking-dry.brf

or

https://github.com/poutnikl/Trekking-Poutnik/blob/develop/Trekking-Poutnik.brf

which have explicit ford penalty handling, that is changing with the value of MTB_factor ( more at https://github.com/poutnikl/Trekking-Poutnik/wiki )

AFAIK, such things as a ford depth are not provided in BRouter rd5 files for now, exposed to profiles ( at least was not when the ford related code was written ). So general ford approach was chosen, possibly too strict to some fords and too weak for others.

There is considered one time ford node/way costs. If the ford is mapped as the OSM way, then also the ford costfactor.