You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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?
Activity
spixi commentedon Apr 7, 2025
Interestingly, the racingbike profile does consider the single ferry duration, but the other profiles do not.
easbar commentedon Apr 8, 2025
Why do you think the racingbike profile considers the ferry duration? To me it seems it does not:
foot
racingbike
easbar commentedon Apr 8, 2025
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?
[-]duration of ferry is ignored in the grasshopper_foot engine[/-][+]duration of ferry is ignored for foot[/+]spixi commentedon Apr 8, 2025
This is strange. When I tried it yesterday, it said 6 minutes for racingbike, but 2 minutes for foot ...
XianzhiTang001 commentedon May 18, 2025
/assign