# `ExAws.Location.Routes.IsolineAvoidanceOptions`

Specifies features of the road network to avoid when calculating reachable areas. These
preferences guide route calculations but may be overridden when no reasonable alternative
exists. For example, if avoiding toll roads would make an area unreachable, toll roads may
still be used.

Avoidance options include physical features (like ferries and tunnels), road characteristics
(like dirt roads and highways), and regulated areas (like congestion zones). They can be
combined to match specific routing needs, such as avoiding both toll roads and ferries.

## Fields

* `:areas` - Specifies geographic areas to avoid where possible. Routes may still pass through
  these areas if no reasonable alternative exists.

* `:car_shuttle_trains` - Indicates a preference to avoid car shuttle trains (auto trains)
  where possible. These may still be included if no reasonable alternative route exists.

* `:controlled_access_highways` - Indicates a preference to avoid controlled-access highways
  (such as interstate highways or motorways) where possible. If a viable route cannot be
  calculated using only local roads, controlled-access highways may still be included.

* `:dirt_roads` - Indicates a preference to avoid unpaved or dirt roads where possible. Routes
  may still include dirt roads if no reasonable paved alternative exists.

* `:ferries` - Indicates a preference to avoid ferries where possible. If a viable route
  cannot be calculated without using ferries, they may still be included.

* `:seasonal_closure` - Indicates a preference to avoid roads that may be subject to seasonal
  closures where possible. These roads may still be included if no reasonable year-round
  alternative exists.

* `:toll_roads` - Indicates a preference to avoid toll roads where possible. If a viable route
  cannot be calculated without using toll roads, they may still be included.

* `:toll_transponders` - Indicates a preference to avoid roads that require electronic toll
  collection transponders where possible. These roads may still be included if no viable
  alternative route exists.

* `:truck_road_types` - For truck travel modes, indicates specific road classification types
  in Sweden (`BK1` through `BK4`) and Mexico (`A2, A4, B2, B4, C, D, ET2, ET4`) to avoid where
  possible. These road types may still be used if no reasonable alternative exists.

* `:tunnels` - Indicates a preference to avoid tunnels where possible. If a viable route
  cannot be calculated without using tunnels, they may still be included.

* `:u_turns` - Indicates a preference to avoid U-turns where possible. U-turns may still be
  included if necessary to reach certain areas or when no reasonable alternative exists.

* `:zone_categories` - Indicates types of regulated zones (such as congestion pricing or
  environmental zones) to avoid where possible. Routes may still pass through these zones if
  no reasonable alternative exists.

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

# `t`

```elixir
@type t() :: %ExAws.Location.Routes.IsolineAvoidanceOptions{
  areas: [ExAws.Location.Routes.IsolineAvoidanceArea.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.IsolineAvoidanceZoneCategory.t()] | nil
}
```

---

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