We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
live API, self-hosted instance
https://api.openrouteservice.org/v2/directions/driving-hgv/geojson
{"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":[]}}}
The route won't use way : https://www.openstreetmap.org/way/189481307#map=19/45.81754/6.96363 due to the hazmat:no tag.
hazmat:no
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...)
hazmat
E
probably due to vehicle type being set to -128 here instead of 128 ?? (but maybe thats some byte value magic)
openrouteservice/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/HeavyVehicleAttributesGraphStorage.java
Line 102 in 5ded0a3
For the example requests, the edge for the way with id 189481307 this expression will be true and return false in the next lne
openrouteservice/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/edgefilters/HeavyVehicleEdgeFilter.java
Line 158 in 78ec9ad
And therefore assign infinity in
openrouteservice/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/weighting/HgvAccessWeighting.java
Line 19 in 27a2e1f
For reproducible example click export in the osm link for the way above.
Properly use hazmat:no ways if hazmat is not set as a vehicle restriction.
8.1.0
2024-06-05T10:07:23Z
2024-06-25T06:07:40Z
https://ask.openrouteservice.org/t/route-planning-for-hgv-trough-tunnel-mont-blanc/6284/1
The text was updated successfully, but these errors were encountered:
f48a073
aoles
Successfully merging a pull request may close this issue.
Is there an existing issue for this?
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
Response
Response
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 ofE
(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)
openrouteservice/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/HeavyVehicleAttributesGraphStorage.java
Line 102 in 5ded0a3
For the example requests, the edge for the way with id 189481307 this expression will be true and return false in the next lne
openrouteservice/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/edgefilters/HeavyVehicleEdgeFilter.java
Line 158 in 78ec9ad
And therefore assign infinity in
openrouteservice/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/weighting/HgvAccessWeighting.java
Line 19 in 27a2e1f
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
The text was updated successfully, but these errors were encountered: