# Avoid multiple areas

**URL:** <https://ask.openrouteservice.org/t/avoid-multiple-areas/1647>\
**Category:** directions\
**Created:** [May 3, 2020, 1:25am UTC](https://ask.openrouteservice.org/t/avoid-multiple-areas/1647 "2020-05-03T01:25:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Armaan\_Mehta](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/armaan_mehta/32/513_2.png) [@Armaan\_Mehta](https://ask.openrouteservice.org/u/Armaan_Mehta)\
**Post date:** [May 3, 2020, 1:25am UTC](https://ask.openrouteservice.org/t/avoid-multiple-areas/1647/1 "2020-05-03T01:25:01Z")

</div>

Please can someone provide sample code to avoid 2 areas just so I know how the example request should be edited for more than one feature?

---

<div class="post-metadata">

**Author:** ![amandus](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/amandus/32/669_2.png) [@amandus](https://ask.openrouteservice.org/u/amandus)\
**Post date:** [May 3, 2020, 10:09am UTC](https://ask.openrouteservice.org/t/avoid-multiple-areas/1647/2 "2020-05-03T10:09:20Z")

</div>

Check out this post:

> [@Replicate and edit MultiPolygon](https://ask.openrouteservice.org/t/replicate-and-edit-multipolygon/764):
>
> HI, Is there a way in ORS to replicate the situation below starting from the following API? I need to replicate these polygons to edit them [https://api.openrouteservice.org/pdirections?api\_key=5b3ce3597851110001cf6248ab704d245ae247f9b49ddfe8622b8303&amp;attributes=detourfactor|percentage&amp;coordinates=11.7692,46.4772|12.269187,45.458543&amp;elevation=true&amp;extra\_info=steepness|waytype|surface&amp;geometry=true&amp;geometry\_format=geojson&amp;instructions=true&amp;instructions\_format=htm…](https://api.openrouteservice.org/pdirections?api_key=5b3ce3597851110001cf6248ab704d245ae247f9b49ddfe8622b8303&amp;attributes=detourfactor%7Cpercentage&amp;coordinates=11.7692,46.4772%7C12.269187,45.458543&amp;elevation=true&amp;extra_info=steepness%7Cwaytype%7Csurface&amp;geometry=true&amp;geometry_format=geojson&amp;instructions=true&amp;instructions_format=html&amp;language=en-US&amp;options=%7B%22avoid_polygons%22:%7B%22type%22:%22MultiPolygon%22,%22coordinates%22:%5B%5B%5B%5B%2211.84669%22,%2246.51375%22%5D,%5B%2211.80206%22,%2246.48562%22%5D,%5B%2211.60980%22,%2246.27293%22%5D,%5B%2211.37016%22,%2246.15605%22%5D,%5B%2211.45942%22,%2246.08370%22%5D,%5B%2211.95930%22,%2246.44116%22%5D,%5B%2211.84669%22,%2246.51375%22%5D%5D%5D,%5B%5B%5B%2211.08932%22,%2245.86586%22%5D,%5B%2211.16554%22,%2246.05512%22%5D,%5B%2211.33274%22,%2245.97143%22%5D,%5B%2211.08932%22,%2245.86586%22%5D%5D%5D,%5B%5B%5B%2211.30064%22,%2246.22165%22%5D,%5B%2211.36844%22,%2246.22141%22%5D,%5B%2211.27746%22,%2246.12536%22%5D,%5B%2211.30064%22,%2246.22165%22%5D%5D%5D,%5B%5B%5B%2211.23356%22,%2246.18140%22%5D,%5B%2211.24287%22,%2246.18459%22%5D,%5B%2211.23628%22,%2246.18012%22%5D,%5B%2211.23356%22,%2246.18140%22%5D%5D%5D,%5B%5B%5D%5D,%5B%5B%5B%2211.42646%22,%2246.28207%22%5D,%5B%2211.44144%22,%2246.28468%22%5D,%5B%2211.47165%22,%2246.28916%22%5D,%5B%2211.44144%22,%2246.27995%22%5D,%5B%2211.42646%22,%2246.28207%22%5D%5D%5D,%5B%5B%5B%2211.05018%22,%2245.82640%22%5D,%5B%2211.58645%22,%2246.01365%22%5D,%5B%2211.67984%22,%2245.94924%22%5D,%5B%2211.15867%22,%2245.74500%22%5D,%5B%2211.05018%22,%2245.82640%22%5D%5D%5D,%5B%5B%5B%2211.42814%22,%2246.28423%22%5D,%5B%2211.43033%22,%2246.29512%22%5D,%5B%2211.45277%22,%2246.29265%22%5D,%5B%2211.42814%22,%2246.28423%22%5D%5D%5D,%5B%5B%5B%2211.46766%22,%2246.31943%22%5D,%5B%2211.74026%22,%2246.53997%22%5D,%5B%2211.61083%22,%2246.57113%22%5D,%5B%2211.34887%22,%2246.41135%22%5D,%5B%2211.46766%22,%2246.31943%22%5D%5D%5D,%5B%5B%5B%2211.74335%22,%2246.54138%22%5D,%5B%2211.84171%22,%2246.55590%22%5D,%5B%2211.78455%22,%2246.47593%22%5D,%5B%2211.74335%22,%2246.54138%22%5D%5D%5D%5D%7D%7D&amp;preference=fastest&amp;profile=driving-hgv&amp;units=m)

Best regards
