-
In the BRouter Web Client there is the option for cyclists: Avoid gradients. |
Beta Was this translation helpful? Give feedback.
Answered by
poutnikl
Jul 12, 2024
Replies: 1 comment 4 replies
-
Do you mean the downhill / uphill options in the trekking profile? They do not appear elsewhere in the profile, so they are probably used inside the code. Have you understood how they really work? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use built-in variable downhillcostfactor and uphillcostfactor. They are by default equal to costfactor, but you can set them to any value by suitable expression. They replace costfactor if up/downhillcutoff is crossed.
I used this approach in one on-demand profile for some crazy MTB biker (Trekking-hilly-path), which explicitly looked for uphills and downhills.
I use downhillcostfactor and uphillcostfactor in bike profiles generally, but just for tweeking costfactor for inclines on some surfaces. E.g. gravel or grass are not so much fun for bike climbing or downhill, if you are not hard core.
See also my Glossary page on GitHub.