Skip to content

duration of ferry is ignored for foot #3156

Closed as not planned
Closed as not planned

Description

@spixi

Describe the bug
There is a manually driven cable ferry with a duration of 00:03. When the ferry is on the correct side, it takes 3 minutes to cross the river. When it is on the wrong side, it takes 6 minutes, that means the average crossing time should be considered as 4.5 minutes.

However, the duration of the ferry is not considered at all

To Reproduce
https://www.openstreetmap.org/way/192396281

Expected behavior
The duration of the ferry should be considered with 4.5 minutes.

Screenshots & Logs
Image
Image

Activity

  1. spixi commented on Apr 7, 2025

    @spixi
    Author

    Interestingly, the racingbike profile does consider the single ferry duration, but the other profiles do not.

  2. easbar commented on Apr 8, 2025

    @easbar
    Member

    Why do you think the racingbike profile considers the ferry duration? To me it seems it does not:

    foot
    racingbike

  3. easbar commented on Apr 8, 2025

    @easbar
    Member

    However, the duration of the ferry is not considered at all

    In fact itt does get considered, but maybe not in the most obvious way: Instead of adding the ferry duration to the travelling time directly GraphHopper estimates a travel speed for the ferry, based on the given duration and the ferry distance. Since the ferry is quite short (only around 10m) the estimated speed is very slow. In fact it is slower than the slowest speed GraphHopper can store (2km/h), which is why it is rounded up to 2km/h. This results in a too short ferry duration of only around 18s (instead of the given 180s). So the ferry duration handling is certainly not ideal here. Then again, since the absolute time difference is only a couple of minutes the effect on the total traveling time for longer routes is rather small?

  4. changed the title [-]duration of ferry is ignored in the grasshopper_foot engine[/-] [+]duration of ferry is ignored for foot[/+] on Apr 8, 2025
  5. spixi commented on Apr 8, 2025

    @spixi
    Author

    Why do you think the racingbike profile considers the ferry duration? To me it seems it does not:

    foot racingbike

    This is strange. When I tried it yesterday, it said 6 minutes for racingbike, but 2 minutes for foot ...

  6. XianzhiTang001 commented on May 18, 2025

    @XianzhiTang001

    /assign

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions