Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The route chosen with the top_speed value selects a significantly slower detour #4721

Open
radekvermirovsky opened this issue May 7, 2024 · 1 comment

Comments

@radekvermirovsky
Copy link

We would like to utilize the top_speed parameter in routing because the vehicles we intend to route are equipped with a speed limiter set to 85 km/h. However, when we apply the top_speed parameter, it selects significantly longer routes in terms of time, which is impractical.

For instance, when routing with a top_speed of 89 km/h, the route appears reasonable, taking 2 hours, 1 minute, and 37 seconds over a distance of 171.8 km.

valhalla.openstreetmap.de link

image

However, simply changing the top_speed to 88 km/h results in the route taking a substantial detour, increasing both the travel time and distance significantly (almost 2 hours in time and 24 km in distance)

image

I read in the documentation that top_speed is also intended to "avoid roads with higher speeds than this value." However, even when considering this, these detours that prolong travel time don't make sense.

It seems like top_speed is having the wrong impact on some costs on this highway.

We tried adjusting use_highways and use_toll to prioritize the Valhalla route over this more sensible highway route, but without success.

@radekvermirovsky
Copy link
Author

ok seems like it was already discussed there. discussion. Now it make sense what is happening...but IMO this penalty shouldnt be there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant