# Hazmat options or workaround

**URL:** <https://ask.openrouteservice.org/t/hazmat-options-or-workaround/6614>\
**Category:** directions\
**Created:** [October 25, 2024, 10:29pm UTC](https://ask.openrouteservice.org/t/hazmat-options-or-workaround/6614 "2024-10-25T22:29:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kovkus](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/kovkus/32/2710_2.png) [@kovkus](https://ask.openrouteservice.org/u/kovkus)\
**Post date:** [October 25, 2024, 10:29pm UTC](https://ask.openrouteservice.org/t/hazmat-options-or-workaround/6614/1 "2024-10-25T22:29:25Z")

</div>

Hello,  
I need to get directions for hgv profile, when transporting hazmat category E.  
I only see option to pass hazmat bool which has no effect on my route - even when there are tunnels with hazmat:b=no hazmat:c=no hazmat:d=no hazmat:e=no.  
Is there way to pass what category is my vehicle?  
Also for the time beeing, it would be okay if my route would avoid any tunnel along the road, but I’m not able to find that parameter. Any ideas? Thanks

---

<div class="post-metadata">

**Author:** ![andrzej](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/andrzej/32/10_2.png) [@andrzej](https://ask.openrouteservice.org/u/andrzej)\
**Post date:** [October 26, 2024, 9:00pm UTC](https://ask.openrouteservice.org/t/hazmat-options-or-workaround/6614/2 "2024-10-26T21:00:57Z")

</div>

Thanks for reaching out!

This is correct, currently only roads tagged with `hazmat=no` can be filtered out from routing. Unfortunately, we do not provide an option to avoid tunnels in general. However, as the described issue sounds legitimate, I’ve opened a [feature request](https://github.com/GIScience/openrouteservice/issues/1874). It seems relatively easy to implement, so stay tuned 🚀

---

<div class="post-metadata">

**Author:** ![kovkus](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/kovkus/32/2710_2.png) [@kovkus](https://ask.openrouteservice.org/u/kovkus)\
**Post date:** [October 27, 2024, 12:59am UTC](https://ask.openrouteservice.org/t/hazmat-options-or-workaround/6614/3 "2024-10-27T00:59:15Z")

</div>

Thank you very much for feature request. I will keep an eye on that.

---

<div class="post-metadata">

**Author:** ![andrzej](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/andrzej/32/10_2.png) [@andrzej](https://ask.openrouteservice.org/u/andrzej)\
**Post date:** [October 31, 2024, 9:05pm UTC](https://ask.openrouteservice.org/t/hazmat-options-or-workaround/6614/4 "2024-10-31T21:05:22Z")

</div>

Hi, the functionality to include ways tagged with `hazmat:B`, `hazmat:C`, `hazmat:D`, and `hazmat:E` to the filter which restricts roads for the transport of dangerous goods (specified via the `hazmat` flag in vehicle parameters) has been [merged](https://github.com/GIScience/openrouteservice/pull/1879) to the main branch. It will be included in the upcoming November release 🎉

Happy routing! 🗺
