Values.CalculateRoutesResponseSourceCalculateRoutes computes routes given the following required parameters: Origin and Destination. For more information, see Calculate routes in the Amazon Location Service Developer Guide.
type nonrec t = {legGeometryFormat : GeometryFormat.t option;Specifies the format of the geometry returned for each leg of the route.
*)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.
*)pricingBucket : String_.t option;The pricing bucket for which the query is charged at.
*)routes : RouteList.t option;The path from the origin to the destination.
*)}type nonrec error = [ | `AccessDeniedException of AccessDeniedException.t| `InternalServerException of InternalServerException.t| `ThrottlingException of ThrottlingException.t| `ValidationException of ValidationException.t| `Unknown_operation_error of string * string option ]val 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 ]val 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 ]val 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 ]