GithubHelp home page GithubHelp logo

Comments (17)

poutnikl avatar poutnikl commented on May 23, 2024

Try first to experiment with profile template tuning.
For bike, choose the template from Ford crossing branch, it is newer.
For trekking template, choose high values of Mtb factor(1-3) and eventually together with smallpaved factor (0-2)

For hiking template, there is offroad factor as analogy of Mtb factor.

If it does not satisfy you, it would help if you provide brouter-web links to location scenarios with examples of desired routes, in contrary to routes what you managed by profiles.

I am not aware of profiles ignoring cycleways or footways, but I can check. It may ne also matter of Osm node costs and way initial costs.

from brouter-profiles.

poutnikl avatar poutnikl commented on May 23, 2024

For Hiking, you may try also raising path_preference parameter.

from brouter-profiles.

Thunichgud avatar Thunichgud commented on May 23, 2024

from brouter-profiles.

poutnikl avatar poutnikl commented on May 23, 2024

Do not underestimate yourself. As I am not aware of my profiles work as you describe, I need your cooperation.

Locate at Brouter web the start and destination, that manifests the profile behavior as you described. You may post the Permalink you can see at the screen right bottom..

I can then reproduce and analyze it, and eventually create the optimally tuned profile.

from brouter-profiles.

Thunichgud avatar Thunichgud commented on May 23, 2024

from brouter-profiles.

poutnikl avatar poutnikl commented on May 23, 2024

It was quite a long route. .. :-) I was testing the current development versions of Trekking-template ( 2.5.20 ), so its Trekking-MTB-medium may slightly differ from the released Trekking-MTB-medium.

The key issue that affects you is this :
Both Brouter standard and my profiles remove large part of penalization of main roads, if there is a "bike friendly hint". Either there is an explicit bicycle access flag/features, either there is a cycleroute. It makes a good sense, otherwise following cycleroutes could be disturbed, if a route segment follows otherwise a highly penalized road.

I have implemented a switch that turns this out, so the bike friendly hints are ignored. But even if not turned off, the MTB-medium settings seem do not make excessive prioritization of main roads.

from brouter-profiles.

poutnikl avatar poutnikl commented on May 23, 2024

Try to download and test these 3 profiles
Trekking test is the Trekking-Dry according to the latest template.
Trekking-MTB-Medium is what it seems to be,
Trekking-MTB-Medium-noidbike is MTB medium with turned off prioritization of bike hints for major roads.

from brouter-profiles.

Thunichgud avatar Thunichgud commented on May 23, 2024

from brouter-profiles.

poutnikl avatar poutnikl commented on May 23, 2024

I apologize for not noticing the main "nature" request. For some reason, I have read it as "near future" :-)

The Trekking-Test SHOULD be near identical to the older Trekking-Dry, as it is its development version. It was provided as a reference. The trekking-Dry/Test is as it should be, tuned neutrally. What was to do was tuning the template for the biased, particular use.

The 2 MTB profiles are development versions of older MTB-medium, the noisbike version differs in removing the lower penalty for mainroads wit bike friendly hints. Generally, both Trekking MTB profiles DO prioritize tracks/paths/worse surfaces and penalize mainroads, so it is very strange you get better results with the Trekking-test, as the opposite should be true.

Did you try to chose a profile from the full profile set from Trekking-Poutnik repository ? Like MTB or MTB-light , until I create evetually some new ones ? Or the MTB profiles by Zosserbart ?

Staying at tuning of my profiles, it can be done by tuning these settings at Brouter web.

assign MTB_factor 0.0 // replace by values between 1.0 - 3.0
assign smallpaved_factor 0.0 // replace by values between -0.5 - -1.5

As you are the best person to decide what you like the best.

I have pre-created for you a version with values 1.5 and -0.75 as Trekking-tracks.
I suggest not to use it in city traffic, otherwise it may lead to funny results due avoiding roads.
It can be further tuned if not balanced. As seen on Brouter-web, it could be good as first shoot.

It gives strong additional prority to tracks/paths, especially unpaved, and high additional penalty to roads, in smaller extent even paved mall roads/track. If these small roads/paved tracks are penalized too much, the smallpaved factor can be increases.

Note that there is not possible to distinguish the terrain context of tracks/path ( urban/field/wood area ).
Theoretically it would be possible to determine it indirectly from access=agriculture/forestry, but usage of such tags is rare and not consistent.

See also Brouter-profiles wiki
MTB_factor and smallpaved_factor
Trekking MTB Profiles legend

from brouter-profiles.

pereorga avatar pereorga commented on May 23, 2024

Hi,

I've arrived here looking for the same or a very similar thing: high preference for paths like http://4.bp.blogspot.com/-TeYg7BIyhxI/Tb28bjNCvQI/AAAAAAAACAQ/2aCL7w6MHJ0/s1600/DSCN3241.JPG and https://s0.wklcdn.com/image_22/672647/9191143/5455245.jpg - unpaved paths outside urban areas where a single person can pass in line. We call them "corriols" in Catalan.

I tried https://raw.githubusercontent.com/poutnikl/Trekking-Poutnik/develop/Trekking-tracks.brf and I think it's almost there for most cases, but it's still going through cities in others. I also found a case with a very unexpected result, try going from 41.40359970000001,2.1553129000000126 to 41.4470241,1.9728327000000263:

brouter_web_client

(Collserola mountains are skipped when trying to go to Sant Andreu de la Barca from Vila de Gràcia)

I think it would be great if Openstreetmap tags such as landuse=forest and natural=scrub could be used.

from brouter-profiles.

poutnikl avatar poutnikl commented on May 23, 2024

Technical note: If a particular location or route is evaluated, it is an advantage to provide the Brouter-web permalink(bottom right corner) , even if just with the standard profile as here. I can then just upload the custom profiles to evaluate the route.

BRouter routing is not aware of area tagging. BRouter exposes via RD5 files and lookups.dat file to profiles just selected tag subset for OSM ways and OSM nodes. Profiles cannot evaluate OSM areas. Profiles can evaluate only OSM way tags relevant for routing + OSM node tags along these OSM ways.

Therefore, a profile sees a path/track/road, sees its tags relevant to its quaity, but does not see its context. It has no idea if it is a path in a city park, a path as a shortcut through fiields, a forest path or a mountain trail, unless there are explicit tag hints about it.

Trekking-tracks profile was not intended as a Mountain MTB profile. It is still meant for traveling, even if with MTB-like preferences for used ways. Be aware that all these profiles evaluate elevation changes as extra way lengths and they always go for the shortest equivalent length. The route across the mnts gives additional 400-500m up and down. what can give up to extra 60 effective kms. The particular value highly depends on Brouter profile and the slope profiles.

The Zossebart's MTB profiles and my MTB-like profiles derived from Trekking-Poutnik template. decreases elevation penalties a lot, but they are still there. Note that even Native MTB profiles of Zossebart do not suggest the route across the Collserola Mtns, but goes around similarly as other profiles.

You may not notice the path_preference parameter, already present in the template, and therefore in Trekking-tracks as well. Playing with it gives you more or less what you want.

Here is the link to BRouter-web with the route provided by the standard Trekking profile. I created for you the profile Trekking-hilly-paths.brf with the below parameters. Upload it is the bottom left custom profile field and you may experiment with the profile tuning.

Be aware the profile may act crazy in particular scenarios. The question is, if it is crazy enough, or too much. It may eventually kill you. I wash my hands and all consequences fall on your head.

assign cycleroutes_pref 0.2
assign MTB_factor 2.0
assign smallpaved_factor -1.0
assign isbike_for_mainroads 0
assign path_preference 20.0

In the end, as I have said above, I do not recommend to use similar profiles within cities, but rather recommend a hybrid profile approach. As the route they could suggest in a city may be more weird than a route that other profiles would suggest out of a city.

from brouter-profiles.

pereorga avatar pereorga commented on May 23, 2024

Thanks a lot for the explanation. I get it now. Hopefully BRouter will be able to take into account OSM area tags in the future.

For now, I think Trekking-hilly-paths.brf is working great. I will be testing it in the coming weeks.

Regards

from brouter-profiles.

poutnikl avatar poutnikl commented on May 23, 2024

Great. I think it may need some tweeking by tuning the above parameters. You can di so BRouter-web on terrain you know personally to get the routes you know you would choose.

Note that I have just fixed a regression introduced earlier, that sometimes may trigger the BRouter runtime error "Error: error re-tracking track". I updated Trekking-hilly-paths.brf to address that.

from brouter-profiles.

poutnikl avatar poutnikl commented on May 23, 2024

Regarding the area tags : I doubt the BRouter or other routing service will implement their evaluation in routing context. But even if they did, I think better is the manual visual way with viapoints or nogo areas.

from brouter-profiles.

poutnikl avatar poutnikl commented on May 23, 2024

Note also the chosen nonpath_penalty= 20.0 is very aggressive settings, overcoming default penalties of mountains paths, due rough terrain and hilly nature. For less extreme scenarios in flat regions, even values 3-5 may give good enough results.

from brouter-profiles.

poutnikl avatar poutnikl commented on May 23, 2024

In BRouter, it is not possible to analyse the wider context of OSM ways, aside of the OSM way/node tags. Namely belonging to or being placed in the OSM multigonal area is information not available in Brouter RD5 files nor to Brouter profiles.

I have addressed possible partial solutions indirectly by the above mentioned special profiles Trekking-tracks and Trekking-hilly-paths.

from brouter-profiles.

poutnikl avatar poutnikl commented on May 23, 2024

There is a way how to address various preferences of ways in wider map context:

Using OSM tags class:bicycle, resp class.bicycle,mtb.
It is a subjective tags, and as any such a tag it is rather conversational and questioned.

Valid values are -3..+3. +/-3 should be use very exceptionally for extraordinary horrible or amusing ways, and 0 should be avoided as giving no info.

The streetbike profile of @utack already uses this tag, and I am going to implement it as well in my profiles.

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.