Skip to content

The duration of routing for hiking / pedestrian doesn't make any distinction between ascent and descent #1597

Closed

Description

@carlos-mg89

Hi!

GraphHopper adds the elevation data since a few years and that's fantastic. Having the elevation for each of the points of the route is really a wonderful data very appreciated when calculating hiking routes.

However, it doesn't seem to take into account the elevation data when calculating the time / duration of the Path or Instruction. I realized about this, when I wanted to calculate the reversed path of a given route with 2000m of ascent, and 500m of descent. When calculating the reversed route (which has 500m of ascent and 2000m of descent), I saw that the time estimate was exactly the same.

At the beginning I thought that there was a bug in the time calculation process, and that it didn't show the correct time for reversed routes. But after doing some more tests, I can see that a 5km route, with barely no elevation, has the same time (60min) than a route with 300m or 400m of ascent.

I see that in the config.yml, there's a comment saying the following:

bike2 takes elevation data into account (like up-hill is slower than down-hill) and requires enabling graph.elevation.provider below

Perhaps it would be great to allow the customization of the config.yml to implement that in the hiking profile. Or even better, since knowing more accurate information, like the estimated walking time, is something that probably everyone wants to know, it could be implemented by default.

Would it be possible to implement this easily? I could do it myself with some hints / guidance. Or at least I could help with this.

Activity

  1. karussell commented on Apr 17, 2020

    @karussell
    Member

    This is partly done in #1750 (still no difference between downhill vs. uphill as this would require two weights per edge for foot+hike too. We need to do the same like we did for bike and car -> #1968)

  2. hungerburg commented on Jan 15, 2021

    @hungerburg

    Currently, the duration suggested by the hiking profile is good for trails that monotonously go down. The reverse trail is off from signposted estimates by a quite linear factor of around 1:1.6 or 1:1.7, which coincidentally maps to 500/300 - the DAV recommended elevation overheads. Edit: This mus be pure coincidence as trails are not vertical.

    Sample routes in the other thread, at the end - #1679

  3. karussell commented on Feb 28, 2023

    @karussell
    Member

    @hungerburg the ETAs have now improved for the hike profile. In #1679 you gave these two examples:

    Not a perfect match yet but an improvement. Furthermore the downhill path is now faster (2:03h, 0:32h).

    I hope this makes more sense?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions