Module Values.CalculateRoutesResponseSource

CalculateRoutes computes routes given the following required parameters: Origin and Destination. For more information, see Calculate routes in the Amazon Location Service Developer Guide.

Sourcetype nonrec t = {
  1. legGeometryFormat : GeometryFormat.t option;
    (*

    Specifies the format of the geometry returned for each leg of the route.

    *)
  2. notices : RouteResponseNoticeList.t option;
    (*

    Notices are additional information returned that indicate issues that occurred during route calculation. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

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

    The pricing bucket for which the query is charged at.

    *)
  4. routes : RouteList.t option;
    (*

    The path from the origin to the destination.

    *)
}
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 : ?legGeometryFormat:??? -> ?notices:??? -> ?pricingBucket:??? -> ?routes:??? -> 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 * [> `Enum of string | `List of [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `Enum of string | `String of LanguageTag.t | `Structure of (string * [> `Enum of string | `List of [> `List of [> `Double of Double.t ] list | `String of TruckRoadType.t | `Structure of (string * [> `Enum of string | `Integer of RoutePassThroughWaypointGeometryOffsetInteger.t | `List of [> `Enum of string | `Integer of Integer.t | `Structure of (string * [> `Enum of string | `List of [> `Double of Double.t | `Enum of string | `Structure of (string * [> `String of SensitiveString.t ]) list ] list | `String of LanguageTag.t | `Structure of (string * [> `Boolean of SensitiveBoolean.t | `Double of RouteTollPriceValueDouble.t | `Enum of string | `Integer of RouteTollPassTransferCountInteger.t | `List of [> `Enum of string ] list | `Long of DimensionCentimeters.t | `String of String_.t | `Structure of (string * [> `Double of RouteTollPriceValueRangeMinDouble.t | `Enum of string | `Integer of RouteNoticeDetailRangeMinInteger.t | `Long of WeightKilograms.t ]) list ]) list ]) list ] list | `Long of DurationSeconds.t | `String of SensitiveString.t | `Structure of (string * [> `Boolean of SensitiveBoolean.t | `Double of SpeedKilometersPerHour.t | `Enum of string | `Integer of RoutePassThroughPlaceWaypointIndexInteger.t | `List of [> `Double of Double.t | `Structure of (string * [> `Enum of string | `String of LanguageTag.t | `Structure of (string * [> `Enum of string | `String of LanguageTag.t ]) list ]) list ] list | `Long of DurationSeconds.t ]) list ]) list ] list | `String of SensitiveString.t | `Structure of (string * [> `String of TimestampWithTimezoneOffset.t | `Structure of (string * [> `Enum of string | `Integer of RouteFerryPlaceWaypointIndexInteger.t | `List of [> `Double of Double.t ] list | `Long of DistanceMeters.t | `String of SensitiveString.t ]) list ]) list ]) list ]) list ] list | `Structure of (string * [> `Long of DistanceMeters.t | `Structure of (string * [> `Structure of (string * [> `Boolean of SensitiveBoolean.t | `Double of RouteTollPriceSummaryValueDouble.t | `String of CurrencyCode.t | `Structure of (string * [> `Double of RouteTollPriceValueRangeMinDouble.t ]) list ]) list ]) list ]) list ]) list ] list | `String of String_.t ]) 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