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

hgv route avoids 'hazmat:no' ways #1813

Closed
1 task done
TheGreatRefrigerator opened this issue Jul 2, 2024 · 0 comments · Fixed by #1853
Closed
1 task done

hgv route avoids 'hazmat:no' ways #1813

TheGreatRefrigerator opened this issue Jul 2, 2024 · 0 comments · Fixed by #1853
Assignees
Labels
bug 🐞 Erroneous behavior of the backend

Comments

@TheGreatRefrigerator
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Where did you encounter this issue?

live API, self-hosted instance

Request URL

https://api.openrouteservice.org/v2/directions/driving-hgv/geojson

POST Request Body

{"coordinates":[[6.962918043136598,45.81735246762025],[6.963899731636048,45.81758800649111]],"elevation":true,"instructions_format":"html","extra_info":["surface","steepness","waytype"],"language":"en","units":"km","preference":"recommended","options":{"profile_params":{"restrictions":{"hazmat":false}},"avoid_polygons":{"type":"MultiPolygon","coordinates":[]}}}

Response

Response

grafik

Current behavior

The route won't use way : https://www.openstreetmap.org/way/189481307#map=19/45.81754/6.96363
due to the hazmat:no tag.

It can use https://www.openstreetmap.org/way/4525912#map=13/45.8735/6.8924 which has a hazmat value of E (which probably just gets ignored entirely...)

probably due to vehicle type being set to -128 here instead of 128 ?? (but maybe thats some byte value magic)

For the example requests, the edge for the way with id 189481307 this expression will be true and return false in the next lne

And therefore assign infinity in

For reproducible example click export in the osm link for the way above.

Expected behavior

Properly use hazmat:no ways if hazmat is not set as a vehicle restriction.

Openrouteservice Version

8.1.0

Build date

2024-06-05T10:07:23Z

Graph date

2024-06-25T06:07:40Z

Forum Topic Link

https://ask.openrouteservice.org/t/route-planning-for-hgv-trough-tunnel-mont-blanc/6284/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Erroneous behavior of the backend
Projects
No open projects
Status: Awaiting release
Development

Successfully merging a pull request may close this issue.

2 participants