poutnikl / Brouter-profiles

My profiles for Brouter offline routing on Android platform
76 stars 17 forks source link

Road-race bike profile with 5=No-Flats mode #26

Open erveinx opened 2 years ago

erveinx commented 2 years ago

Hello Poutnikl,

I'm impressed with the profile collection. Since I, next to mountainbike, als use my race bike, and like to do tours in the hilly parts of Flanders, I was looking to combine the 'no-flats' mode with the fast bike profile.

However, I struggle to find the proper settings, especially with the linked parameters MTB_factor and smallpaved_factor.

What is the 'code block' I need just to activate the 'no flats' behaviour, without the preference for smallpaved or other highway settings?

Kind regards

poutnikl commented 2 years ago

Hmm, hmm. It is like breeding of hot-blood horse with a heavy brewery one.... What I suggest is taking the fast bike profile and implementing no-flats idea, which is quite simple:

  1. The road up/downhill slope itself is not penalized at all.
  2. If the up/downhill slope is below 1.5%, the road is penalized by adding Flat_penalty to the road costfactor.
        assign   uphillcostvalue      0
        assign   uphillcutoffvalue     1.5
        assign   downhillcutoffvalue    1.5
        assign   downhillcostvalue      0
        assign   Flat_Penalty  1.5
        assign rawcostfactor =  <expresion for costfactor>  #replace variable name Costfactor by Rawcostfactor
        assign costfactor   =    add Flat_Penalty rawcostfactor
        assign uphillcostfactor =  rawcostfactor
        assign downhillcostfactor = rawcostfactor

See Glossary for more ideas about profile internals and Trekking-Poutnik.brf to review beta version of Trekking profile template.

erveinx commented 2 years ago

Thanks, it was indeed a difficult breed ;-)

I adapted the fast bike profile, and extended it with the 6 OnlyHills Mode and the 7 Ignore Elevation Mode.

At first sight, it looks ok for my purposes.

Is it usefull to share my profile somewhere?

MarkStephan89 commented 1 month ago

Thanks, it was indeed a difficult breed ;-)

I adapted the fast bike profile, and extended it with the 6 OnlyHills Mode and the 7 Ignore Elevation Mode.

At first sight, it looks ok for my purposes.

Is it usefull to share my profile somewhere?

Yes please share :) I would drive more hills for better training :)