# `ExAws.Location.Routes.RouteMatrixAvoidanceOptions`

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.

* `:car_shuttle_trains` - Avoid car-shuttle-trains while calculating the route.

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

* `:dirt_roads` - Avoid dirt roads while calculating the route.

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

* `: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.

* `: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.

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

* `:u_turns` - Avoid U-turns for calculation on highways and motorways.

* `:zone_categories` - Zone categories to be avoided.

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

# `t`

```elixir
@type t() :: %ExAws.Location.Routes.RouteMatrixAvoidanceOptions{
  areas: [ExAws.Location.Routes.RouteMatrixAvoidanceArea.t()] | nil,
  car_shuttle_trains: boolean() | nil,
  controlled_access_highways: boolean() | nil,
  dirt_roads: boolean() | nil,
  ferries: 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.RouteMatrixAvoidanceZoneCategory.t()] | nil
}
```

---

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