Comments (5)
Hi,
thanks for your idea.
I will have to think about it a bit before finding a good solution
For now can you test if this works for you
https://pastebin.com/pYsz3JQH
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
Something like 0.8 should probably also still be ok in slightly "tired" conditions, but would allow some unpaved roads
from utack_brouter_profile.
thank you so much. I will try it later.
from utack_brouter_profile.
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
from utack_brouter_profile.
Btw, I found that 1.25 seems to be the threshold to switch back to the original profile
from utack_brouter_profile.
Based on this, I implemented the following:
switch to use paved roads only
assign paved_routes_only false
the maximum smoothness penalty a way may have before we avoid it
assign 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 #
from utack_brouter_profile.
Related Issues (20)
- speed penalty needs to look at hascycleway HOT 1
- tune traffic and maxspeed penalty HOT 1
- fine_gravel bug HOT 3
- when detecting gravel/fine_gravel add bicycle=dedicated to the whitelist HOT 1
- Re-evaluate high tracktypes HOT 1
- Navigation hints HOT 3
- %is_wet%
- Assume gates on offical cycleways have access
- Add all switches HOT 1
- fix access when highway is construction
- add "low traffic" property HOT 1
- factor brouter pseudo traffic into traffic penalty HOT 1
- handle access=unknown situations HOT 4
- assume surface quality for all highway=* that are part of a bicycle route as better HOT 1
- always assume highway=steps means dismount HOT 1
- when surface/smoothness are unknown, consider if the way is part of a bike route HOT 1
- unable to find a route over causeway linking Singapore and Malaysia HOT 5
- Add switch to ignore_cycleway HOT 6
- could not calculate route. length=1 index=1 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from utack_brouter_profile.