GithubHelp home page GithubHelp logo

Turncost for main roads about brouter-profiles HOT 7 CLOSED

utack avatar utack commented on May 23, 2024
Turncost for main roads

from brouter-profiles.

Comments (7)

poutnikl avatar poutnikl commented on May 23, 2024

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.

poutnikl avatar poutnikl commented on May 23, 2024

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.

poutnikl avatar poutnikl commented on May 23, 2024

V2.5.8-changed initial costs for minor ways

from brouter-profiles.

utack avatar utack commented on May 23, 2024

Thanks!
I hope it leads to consistently better results

from brouter-profiles.

utack avatar utack commented on May 23, 2024

Initialcost 10 also fixes the "many small ways" thing, but it does not influence some larger routes I tried

from brouter-profiles.

poutnikl avatar poutnikl commented on May 23, 2024

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.

utack avatar utack commented on May 23, 2024

Yes that is exactly what solves the problem I found, much better than messing with turncosts

from brouter-profiles.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.