Comments (7)
Turncost BRouter parameter addresses any physical turning, as an estimated loss of distance due slowing down. Turning on main roads are considered more costly, as you are supposed going faster, and the distance loss by breaking, going on lower speed and accelerating back is bigger.
Note also that BRouter default Trekking profile uses turncost 90 for all roads, aĆd I decreased it for small roads. OTOH, it sets turncost=0 and costfactor=1.0 for cycleroutes, unless ignore cycleroutes is chosen.
( actual_turncost = turncost * ( 1 - cos(alfa)) .
Not sharp, round-like turning is mapped in OSM as a serie of small turns, so effect is like
e.g. 4 * turncost * ( 1 - cos(22.5)), instead of turncost.
Trekking-dry selected smaller roads mainly because secondary is not liked by the profile, and it was avoiding the traffic light.
What I may reconsider is initialcost management, increasing initialcost for small ways. ( Default Trekking does not use initialcost for ways)
You may easily follow the evaluation of way segments on the data tab of BRouter web.
I admit the profile is focussed more on rural area trekking than on city biking. It is possible city would need different tuning. There is need of balanced costfactors and initialcosts.
from brouter-profiles.
When I changed at assign initialcost statement the ending else 0 to else 30, the result routing was the same as for the Trekking profile, e.g. along the main roads.
I may also reconsider the lowering cost of traffic lights.
from brouter-profiles.
V2.5.8-changed initial costs for minor ways
from brouter-profiles.
Thanks!
I hope it leads to consistently better results
from brouter-profiles.
Initialcost 10 also fixes the "many small ways" thing, but it does not influence some larger routes I tried
from brouter-profiles.
The point is, in the dense way network as there is in cities, there is needed a trade-off between
- low enough initial costs to still prefer bike friendly roads
- high enough initial costs to avoid too frequent road jumping.
The shorter way segments there are, the more significant are initialcosts , and less the costfactors.
It makes the difference, if the way connection nodes are 1 per 1-2 km on rural areas, or 1 per 20-50m in cities.
from brouter-profiles.
Yes that is exactly what solves the problem I found, much better than messing with turncosts
from brouter-profiles.
Related Issues (20)
- Not avoiding an unpleasant way HOT 3
- cost for routing over "ford" HOT 16
- Profile Hiking/Trekking near nature HOT 17
- Missing route types used in Budapest HOT 13
- traffic_calming nodes not evaluated for cost factor HOT 3
- sidewalk HOT 1
- Main vs dedicated profiles HOT 9
- Missing Commuting profile HOT 2
- Electric bicycle trailer for children HOT 16
- Profiles do not contain expressions for context way (error Osmand 2019/07) HOT 6
- Brouter-profile for touring cyclists with luggage -> long-distance travel HOT 7
- > a script to generate the content of this repo directly might be useful. HOT 1
- Ascent in hiking profile HOT 12
- Avoiding yield/stop signs HOT 7
- Road-race bike profile with 5=No-Flats mode HOT 2
- Ignore bicycle=use_sidepath ways HOT 3
- Add penalty for railway crossings?! HOT 2
- Trekking-dry and other profiles select 16%+ descent on grade2 track HOT 4
- profile=hiking-mountain routes over way with foot=no
- Cross-country skiing profile for Android app
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 brouter-profiles.