# `ExAws.Location.Routes.WaypointOptimizationClusteringOptions`

Options for WaypointOptimizationClustering.

## Fields

* `:algorithm` - (required) The algorithm to be used. `DrivingDistance` assigns all the
  waypoints that are within driving distance of each other into a single cluster.
  `TopologySegment` assigns all the waypoints that are within the same topology segment into a
  single cluster. A Topology segment is a linear stretch of road between two junctions. Valid
  values: `DrivingDistance`, `TopologySegment`.

* `:driving_distance_options` - Driving distance options to be used when the clustering
  algorithm is DrivingDistance.

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

# `t`

```elixir
@type t() :: %ExAws.Location.Routes.WaypointOptimizationClusteringOptions{
  algorithm: String.t(),
  driving_distance_options:
    ExAws.Location.Routes.WaypointOptimizationDrivingDistanceOptions.t() | nil
}
```

---

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