# Avoid\_polygons for Matrix API

**URL:** <https://ask.openrouteservice.org/t/avoid-polygons-for-matrix-api/3558>\
**Category:** openrouteservice\
**Created:** [January 27, 2022, 2:45am UTC](https://ask.openrouteservice.org/t/avoid-polygons-for-matrix-api/3558 "2022-01-27T02:45:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Layne](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/l/ac8455/32.png) [@Layne](https://ask.openrouteservice.org/u/Layne)\
**Post date:** [January 27, 2022, 2:45am UTC](https://ask.openrouteservice.org/t/avoid-polygons-for-matrix-api/3558/1 "2022-01-27T02:45:52Z")

</div>

I would like set some avoid\_polygons for matrix, but there no option like direction API. Is there any way to do make the avoid polygons work when caculation distance matirx.

---

<div class="post-metadata">

**Author:** ![HendrikLeuschner](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/hendrikleuschner/32/509_2.png) [@HendrikLeuschner](https://ask.openrouteservice.org/u/HendrikLeuschner)\
**Post date:** [January 27, 2022, 9:40am UTC](https://ask.openrouteservice.org/t/avoid-polygons-for-matrix-api/3558/2 "2022-01-27T09:40:01Z")

</div>

Hi, there is no such option at this time.  
In case you’re a developer, check this: [Support Avoid Areas for Matrix Requests by Nakaner · Pull Request #801 · GIScience/openrouteservice · GitHub](https://github.com/GIScience/openrouteservice/pull/801) It is untested though and not implemented, you would need to configure this yourself.

---

<div class="post-metadata">

**Author:** ![Layne](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/l/ac8455/32.png) [@Layne](https://ask.openrouteservice.org/u/Layne)\
**Post date:** [January 28, 2022, 7:00am UTC](https://ask.openrouteservice.org/t/avoid-polygons-for-matrix-api/3558/3 "2022-01-28T07:00:02Z")

</div>

Thanks a lot.
