Coder Social home page Coder Social logo

Comments (7)

yuriiurshuliak avatar yuriiurshuliak commented on June 19, 2024

It appears that the "prefer unpaved roads" setting may not be accurately influencing route calculations when combined with "avoid motorways." In this case, the "prefer unpaved roads" option is not affecting calculations for unpaved roads, but rather for motorways. Most likely, this is expected behavior and as the route you indicated is quite difficult to calculate only on unpaved roads. The "prefer unpaved roads" option doesn't completely exclude unpaved roads from consideration but rather lowers their priority. You can find the web version of the map here.

from osmand.

sinkoneri avatar sinkoneri commented on June 19, 2024

The map you linked doesn't contain any unpaved roads so if "avoid motorways" enabled, and can't calculate the route with unpaved tracks the prefered route should be this via route 7, which avoids M7 motorway.
I think the fallback route should check the avoid filters but now it ignores.

from osmand.

vshcherb avatar vshcherb commented on June 19, 2024

Tha's not an issue of routing engine but issue of routing configuration - https://test.osmand.net/map/?start=47.497380,19.037180&end=47.229784,18.650196&profile=car&params=car,avoid_motorway,prefer_unpaved,noglobalfile,hhoff#14/47.2507/18.6793

If both roads are paved, obviously that should have same cost and as we have penalty for avoiding motorways it should be lower. The issue that we can't use 2 params for speed but we probably can lower priority for both cases.

from osmand.

xmd5a2 avatar xmd5a2 commented on June 19, 2024

I've made some corrections. Routes are calculated as expected but surface for motorway is not considered. It can be an issue in places like Alaska, Siberia where motorways have bad surface. At that moment I don't see how this can be improved without routing engine enhancement. New maps are not required.

motorcycle, avoid_motorway, prefer_unpaved

Case 1 Case 2
Screenshot_2024-04-10_14-15-08 Screenshot_2024-04-10_14-17-44

from osmand.

vshcherb avatar vshcherb commented on June 19, 2024

We need if=motorcycle, avoid_motorway, prefer_unpaved

from osmand.

sinkoneri avatar sinkoneri commented on June 19, 2024

I've made some corrections. Routes are calculated as expected but surface for motorway is not considered. It can be an issue in places like Alaska, Siberia where motorways have bad surface. At that moment I don't see how this can be improved without routing engine enhancement. New maps are not required.

This routes looks good although I don't understand what do you mean by surface for motorway is not considered? Yes, b'cos it is set to avoid them. And if it is set to avoid motorways why could be a bad surface a problem? (The route doesn't even go via motorways. (Although with a motorcycle it shouldn't be a big problem at least with an adventure motorocycle with off-road capabilities)

from osmand.

vshcherb avatar vshcherb commented on June 19, 2024

We don't support proper multiparameter choice so our routing works fine with 1 selected parameter but with 2+ it doesn't find the right balance for penalties

from osmand.

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.