-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add switch to not use offroad #32
Comments
Hi, thanks for your idea. For now can you test if this works for you Please find a new parameter "smoothness_limit" in line 38 that you can play with for a bit, something like 0.4 as I have applied now should quite strictly only give you roads in excellent conditions |
thank you so much. I will try it later. |
The value worked nicely on the route I tested on. It originally routed on a dirt track but now routes along paved roads. Thank you for this |
Btw, I found that 1.25 seems to be the threshold to switch back to the original profile |
Based on this, I implemented the following: switch to use paved roads onlyassign paved_routes_only false the maximum smoothness penalty a way may have before we avoid itassign smoothness_limit = switch ( paved_routes_only ) 0.4 1.25 # Set to 0.4 to use paved roads, >1.25 to allow dirt tracks Sorry about the bold text. Seems it bolds text after # |
Is it possible to add a switch to use only paved roads and cycleways?
Sometimes on a tour you are really tired or you are not confident of riding offroad. It would be nice to have a switch to force the route not to be offroad under these times.
Best Regards
The text was updated successfully, but these errors were encountered: