Git Product home page Git Product logo

trekking-poutnik's People

Contributors

leopoldkellers avatar poutnikl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

trekking-poutnik's Issues

Parameter without effect?

Hi,
while playing around with the updated profiles, I noticed an oddity. This may or may not be a bug, but I'd like to understand what is going on.

Example
I used your current nightly here, but it is the same with the other profiles.

So far I thought that when entering a way/node without bikeaccess, then the last line should represent the action of getting off the bike by adding the value 100 (which I thus called dismountpenalty).

assign initialcost =
        add ( if highway=traffic_signals then 120 
              else if highway=stop  then 60 
              else if and highway=crossing bicycle=no then 60 
              else if and highway=crossing crossing=no then 300 # workaround affecting road routing
              else if ( ford=yes ) then ford_initialcost_node
              else initial_cost_node )
            if bikeaccess then 0  else ( if footaccess then 100 else 1000000 )

However, in the short piece of route posted above, this 100 does not show up in the computed cost. The middle piece is explicitly tagged bicycle=no, so bikeaccess should be set to false by means of

assign bikeaccess =
       if nodeaccessgranted=yes then true
       else if bicycle= then
       (
         if vehicle= then defaultaccess
         else not vehicle=private|no
       )
       else not bicycle=private|no|dismount

(unless nodeaccessgranted=yes, but that shouldn't be the case, since cycle route networks are absent)

The map data is simple enough in this case, so I believe that I can rule out incorrect tagging despite my (still) lacking proficiency in that area of OSM.
What is going on here, is it intended behaviour and if so, why? Changing the value from 100 to sth. else has no effect at all on the computed cost. Shouldn't it?

Another Example

Higher penalty for wrong oneway streets

Hi,

I think the penalty for pushing bike in a oneway in opposite direction might not be high enough. I came up with this situation where I'm going from the point on the left to the point on the right:

screenshot_2018-10-30 brouter web client

The Trekking-dry profile makes me take the one way in opposite direction and then a major street while there is an alternative way on the south which is about as long but without opposite oneway and calmer streets.

Increasing https://github.com/poutnikl/Trekking-Poutnik/blob/master/Trekking-Poutnik.brf#L249 a bit up to 6.0 seems to be perfectly fine to fix this.

What do you think?
Thanks!

EDIT: The route can be seen at https://brouter.phyks.me/#map=18/48.81836/2.31871/OpenStreetMap&lonlats=2.316879,48.817792|2.31918,48.818427&profile=Trekking-dry (although my instance might be quite slow to compute).

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.