GithubHelp home page GithubHelp logo

Comments (5)

utack avatar utack commented on June 26, 2024

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.

Wizit38 avatar Wizit38 commented on June 26, 2024

thank you so much. I will try it later.

from utack_brouter_profile.

Wizit38 avatar Wizit38 commented on June 26, 2024

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.

Wizit38 avatar Wizit38 commented on June 26, 2024

Btw, I found that 1.25 seems to be the threshold to switch back to the original profile

from utack_brouter_profile.

Wizit38 avatar Wizit38 commented on June 26, 2024

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)

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.