Module Values.OptimizeWaypointsResponseSource

OptimizeWaypoints calculates the optimal order to travel between a set of waypoints to minimize either the travel time or the distance travelled during the journey, based on road network restrictions and the traffic pattern data. For more information, see Optimize waypoints in the Amazon Location Service Developer Guide.

Sourcetype nonrec t = {
  1. connections : WaypointOptimizationConnectionList.t option;
    (*

    Details about the connection from one waypoint to the next, within the optimized sequence.

    *)
  2. distance : DistanceMeters.t option;
    (*

    Overall distance to travel the whole sequence.

    *)
  3. duration : DurationSeconds.t option;
    (*

    Overall duration to travel the whole sequence. Unit: seconds

    *)
  4. impedingWaypoints : WaypointOptimizationImpedingWaypointList.t option;
    (*

    Returns waypoints that caused the optimization problem to fail, and the constraints that were unsatisfied leading to the failure.

    *)
  5. optimizedWaypoints : WaypointOptimizationOptimizedWaypointList.t option;
    (*

    Waypoints in the order of the optimized sequence.

    *)
  6. pricingBucket : String_.t option;
    (*

    The pricing bucket for which the query is charged at.

    *)
  7. timeBreakdown : WaypointOptimizationTimeBreakdown.t option;
    (*

    Time breakdown for the sequence.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedException of AccessDeniedException.t
  2. | `InternalServerException of InternalServerException.t
  3. | `ThrottlingException of ThrottlingException.t
  4. | `ValidationException of ValidationException.t
  5. | `Unknown_operation_error of string * string option
]
Sourceval make : ?connections:??? -> ?distance:??? -> ?duration:??? -> ?impedingWaypoints:??? -> ?optimizedWaypoints:??? -> ?pricingBucket:??? -> ?timeBreakdown:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDeniedException of AccessDeniedException.t | `InternalServerException of InternalServerException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `AccessDeniedException of AccessDeniedException.t | `InternalServerException of InternalServerException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `Integer of ClusterIndex.t | `List of [> `Double of Double.t | `Structure of (string * [> `Enum of string | `String of SensitiveString.t ]) list ] list | `Long of DistanceMeters.t | `String of WaypointId.t ]) list ] list | `Long of DistanceMeters.t | `String of String_.t | `Structure of (string * [> `Long of DurationSeconds.t ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t