Hazmat option in hgv-routing


#1

I tried to use the hazmat-routing-option.
Sadly it seems like it isn’t working.
I tried a few water-protection-areas. All of them seem not to be regarded while routing with hazmat=true.
Following one example:
a water-protection-area


the calculated route with openrouteservice while hazmat is true
https://maps.openrouteservice.org/directions?n1=50.832586&n2=12.262759&n3=14&a=50.839681,12.268893,50.824763,12.235165&b=4a&c=0&f6=1&k1=en-US&k2=km

If you turn hazmat on or off it is the same route directly through the water-protection-area.
May you help. Or can explain why I am getting this error?
Kind regards
Elias


#2

Hi @EliasBA ,

openrouteservice can only take into account hazardous materials in routing when the roads themselves have a hazmat=no tag (https://wiki.openstreetmap.org/wiki/Key:hazmat) and it cannot currently determine this based on the road being geographically located within a relation feature.

Regards

Adam


#3

Thank you for your quick response.
Is that something I should ask in the osm-community then?
To mark routes with hazmat:no if they are in a protected areas.
Similar to avoid-polygon feature already implemented in ORS.
Or is that something that should be a feature of ORS?
Regards,
Elias