osrm-backend icon indicating copy to clipboard operation
osrm-backend copied to clipboard

Very optimistic cycling time along rivers

Open TanguyP opened this issue 2 months ago • 4 comments

Issue

Estimated cycling time is sometimes way too low. I've noticed this twice so far, in both cases along a river, for instance:

Image

Steps to reproduce

  • Search for an itinerary along a river/canal. It usually seems to work fine, but sometimes the estimated time is way off.
  • For instance the above itinerary estimates 8 minutes for 7.5 km, which means an average of around 56 km/h.

Specifications

N/A

TanguyP avatar Oct 13 '25 16:10 TanguyP

For some reason, the demo bike profile is currently assigning a 64km/h speed to that portion: https://map.project-osrm.org/debug/bike.html#13.25/49.4602/0.6557 ; note that the profile from the demo is not the default bicycle profile from this repo, see https://github.com/fossgis-routing-server/cbf-routing-profiles.

Nothing suspicious on the way itself: https://www.openstreetmap.org/way/537238536

cc @datendelphin

jcoupey avatar Oct 14 '25 19:10 jcoupey

I'm seeing this in other places too. Hence the following questions:

  • How or based on what is a bike profile mapped to a path/road/etc?
  • How/where can this be changed?

I consider it to be a bug to assign anything above the max default bike profile speed (IIUC, that's 16km/h) to a path. Or is there a legit reason why the max speed should be higher somewhere?

fredg02 avatar Oct 17 '25 11:10 fredg02

https://www.openstreetmap.org/way/537238536#map=13/49.46723/0.63755

afarber avatar Oct 19 '25 13:10 afarber

The route uses roads like "Route de Norville", "Route de Saint-Maurice", etc. while "Véloroute du Val de Seine" is not used at all:

curl -s "https://router.project-osrm.org/route/v1/bicycle/0.668868,49.502012;0.635785,49.443861?overview=false&steps=true" | python3 -m json.tool | grep -E '"name"|"duration"|"distance"|"mode"' 
                            "name": "Route de Norville",
                            "mode": "driving",
                            "duration": 282.2,
                            "distance": 4048.1
                            "name": "Rue du Fournil",
                            "mode": "driving",
                            "duration": 7,
                            "distance": 76.9
                            "name": "Route de Saint-Maurice",
                            "mode": "driving",
                            "duration": 54.7,
                            "distance": 797.8
                            "name": "Route de Norville",
                            "mode": "driving",
                            "duration": 58.1,
                            "distance": 994.1
                            "name": "Rue du Village",
                            "mode": "driving",
                            "duration": 16.4,
                            "distance": 93.3
                            "name": "Rue de Saint-Maurice",
                            "mode": "driving",
                            "duration": 115.6,
                            "distance": 801.2
                            "name": "Route du Marais",
                            "mode": "driving",
                            "duration": 129.2,
                            "distance": 895.7
                            "name": "Impasse du Marais",
                            "mode": "driving",
                            "duration": 198.2,
                            "distance": 1365.3
                            "name": "",
                            "mode": "driving",
                            "duration": 11.8,
                            "distance": 49.6
                            "name": "",
                            "mode": "driving",
                            "duration": 0,
                            "distance": 0
                    "duration": 873.2,
                    "distance": 9122.2
            "duration": 873.2,
            "distance": 9122.2
            "name": "Route de Norville",
            "distance": 6.475603799
            "name": "",
            "distance": 10.53197002

afarber avatar Oct 19 '25 13:10 afarber