openrouteservice icon indicating copy to clipboard operation
openrouteservice copied to clipboard

Improve speed estimation

Open takb opened this issue 5 years ago • 5 comments

The problem reported in #506 is not a bug but a case where the speed as calculated in the VehicleFlagEncoder for traveling over the highway ramps is higher than the speed over the highway itself.

It seems to happen rather frequently, I found multiple Autobahn junctions near Heidelberg on a quick look-around where a similar problem occurs. It happens easily wherever the highway crossing the junction has a speed limit so that the ramps have higher speed limits in relation.

One simple workaround is to heuristically assume a lower speed for said ramps (identified by "highway:*_link" tag on the ways) - it's more realistic anyway for those kinds of ways, than current solution that calculates with 90% of allowed max speed.

takb avatar Nov 28 '19 14:11 takb

We decided to look into alternatives not requiring special handling of highway:*_link ways.

aoles avatar Dec 05 '19 14:12 aoles

On closer investigation the culprit turned out to be the adjustSpeedForAcceleration. For the case in #506 adjusting the parameter ACCELERATION_SPEED_CUTOFF_MAX fixes the problem. Will investigate further on how to improve the speed estimation.

takb avatar Dec 05 '19 14:12 takb

What's the status on altering ACCELERATION_SPEED_CUTOFF_MAX? There seem to be other examples such as https://github.com/GIScience/openrouteservice/issues/673 where setting it to a lower value could potentially help to address the problem.

aoles avatar May 22 '20 10:05 aoles

Yet another example of suboptimal routing, probably caused by the acceleration heuristic.

image

aoles avatar May 24 '21 15:05 aoles