# `ExAws.Location.Routes.RouteAvoidanceOptions`

Specifies options for areas to avoid when calculating the route. This is a best-effort
avoidance setting, meaning the router will try to honor the avoidance preferences but may
still include restricted areas if no feasible alternative route exists. If avoidance options
are not followed, the response will indicate that the avoidance criteria were violated.

## Fields

* `:areas` - Areas to be avoided. Not supported in `ap-southeast-1` and `ap-southeast-5`
  regions for
  [GrabMaps](https://docs.aws.amazon.com/location/latest/developerguide/GrabMaps.html)
  customers.

* `:car_shuttle_trains` - Avoid car-shuttle-trains while calculating the route. Not supported
  in `ap-southeast-1` and `ap-southeast-5` regions for
  [GrabMaps](https://docs.aws.amazon.com/location/latest/developerguide/GrabMaps.html)
  customers.

* `:controlled_access_highways` - Avoid controlled access highways while calculating the
  route.

* `:dirt_roads` - Avoid dirt roads while calculating the route. Not supported in
  `ap-southeast-1` and `ap-southeast-5` regions for
  [GrabMaps](https://docs.aws.amazon.com/location/latest/developerguide/GrabMaps.html)
  customers.

* `:ferries` - Avoid ferries while calculating the route.

* `:seasonal_closure` - Avoid roads that have seasonal closure while calculating the route.
  Not supported in `ap-southeast-1` and `ap-southeast-5` regions for
  [GrabMaps](https://docs.aws.amazon.com/location/latest/developerguide/GrabMaps.html)
  customers.

* `:toll_roads` - Avoids roads where the specified toll transponders are the only mode of
  payment.

* `:toll_transponders` - Avoids roads where the specified toll transponders are the only mode
  of payment. Not supported in `ap-southeast-1` and `ap-southeast-5` regions for
  [GrabMaps](https://docs.aws.amazon.com/location/latest/developerguide/GrabMaps.html)
  customers.

* `:truck_road_types` - Truck road type identifiers. `BK1` through `BK4` apply only to Sweden.
  `A2,A4,B2,B4,C,D,ET2,ET4` apply only to Mexico. Not supported in `ap-southeast-1` and
  `ap-southeast-5` regions for
  [GrabMaps](https://docs.aws.amazon.com/location/latest/developerguide/GrabMaps.html)
  customers.

* `:tunnels` - Avoid tunnels while calculating the route. Not supported in `ap-southeast-1`
  and `ap-southeast-5` regions for
  [GrabMaps](https://docs.aws.amazon.com/location/latest/developerguide/GrabMaps.html)
  customers.

* `:u_turns` - Avoid U-turns for calculation on highways and motorways. Not supported in
  `ap-southeast-1` and `ap-southeast-5` regions for
  [GrabMaps](https://docs.aws.amazon.com/location/latest/developerguide/GrabMaps.html)
  customers.

* `:zone_categories` - Zone categories to be avoided. Not supported in `ap-southeast-1` and
  `ap-southeast-5` regions for
  [GrabMaps](https://docs.aws.amazon.com/location/latest/developerguide/GrabMaps.html)
  customers.

See https://docs.aws.amazon.com/location/latest/APIReference/API_RouteAvoidanceOptions.html

# `t`

```elixir
@type t() :: %ExAws.Location.Routes.RouteAvoidanceOptions{
  areas: [ExAws.Location.Routes.RouteAvoidanceArea.t()] | nil,
  car_shuttle_trains: boolean() | nil,
  controlled_access_highways: boolean() | nil,
  dirt_roads: boolean() | nil,
  ferries: boolean() | nil,
  seasonal_closure: boolean() | nil,
  toll_roads: boolean() | nil,
  toll_transponders: boolean() | nil,
  truck_road_types: [String.t()] | nil,
  tunnels: boolean() | nil,
  u_turns: boolean() | nil,
  zone_categories: [ExAws.Location.Routes.RouteAvoidanceZoneCategory.t()] | nil
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
