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

Debugging reasons for truck re-route #4697

Open
kochis opened this issue Apr 19, 2024 · 6 comments
Open

Debugging reasons for truck re-route #4697

kochis opened this issue Apr 19, 2024 · 6 comments

Comments

@kochis
Copy link

kochis commented Apr 19, 2024

I'm seeing an instance where truck routes are being re-routed off the main highway, and trying to understand why.

Origin: 42.5525176,-114.5271132
Destination: 46.32539,-119.30359

Route: https://valhalla.openstreetmap.de/directions?profile=truck&wps=-114.4603729248047%2C42.563448700516524%2C-119.27925109863283%2C46.27958036616893
image

I would expect it to stay on the main highway, as the car route does:
image

I've tried almost every configuration of costing options that might be causing this, and it never seems to take that route, so I'm assuming it's something with the data. Interestingly, it does use the highway in the other direction.

I've basically narrowed it down to something in this relation (12139901) https://www.openstreetmap.org/relation/12139901.

I've also pulled out any of the nodes with tags here. nodes.json

I'm not too familiar with how the data is being leveraged in the routing, so hoping someone can help me understand how to figure out the case for the issue. Thanks!

@nilsnolde
Copy link
Member

Can you try the same query but with „hgv_access_penalty: 0.0“ in truck costing options? If that works, then there’s somewhere a hgv=no edge.

@kochis
Copy link
Author

kochis commented Apr 19, 2024

It looks like this section has hgv: no

https://www.openstreetmap.org/way/684871963

@kochis
Copy link
Author

kochis commented Apr 19, 2024

Setting hgv_access_penalty = 0.0 did not change the route.

This how I am setting it (to make sure I'm doing it correctly)

/route?json={"locations":[{"lat":42.5525176,"lon":-114.5271132},{"lat":46.32539,"lon":-119.30359}],"costing":"truck","costing_options":{"truck":{"hgv_no_access_penalty":0}}}

@kochis
Copy link
Author

kochis commented Apr 19, 2024

I guess this change is not in the latest release? #4650

@nilsnolde
Copy link
Member

Nope, we’re always assuming people test with master. We should put that in the issue template..

So it works with master right?

@kochis
Copy link
Author

kochis commented Apr 19, 2024

So it works with master right?

I'll have to throw a build together and get back to you 😅

But assuming that's the case, it seems like the hgv: no on this route segment is causing the issue: https://www.openstreetmap.org/way/684871963

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

No branches or pull requests

2 participants