Values.CalculateRouteResponseSourceReturns the result of the route calculation. Metadata includes legs and route summary.
type nonrec t = {legs : LegList.t option;Contains details about each path between a pair of positions included along a route such as: StartPosition, EndPosition, Distance, DurationSeconds, Geometry, and Steps. The number of legs returned corresponds to one fewer than the total number of positions in the request. For example, a route with a departure position and destination position returns one leg with the positions snapped to a nearby road: The StartPosition is the departure position. The EndPosition is the destination position. A route with a waypoint between the departure and destination position returns two legs with the positions snapped to a nearby road: Leg 1: The StartPosition is the departure position . The EndPosition is the waypoint positon. Leg 2: The StartPosition is the waypoint position. The EndPosition is the destination position.
*)summary : CalculateRouteSummary.t option;Contains information about the whole route, such as: RouteBBox, DataSource, Distance, DistanceUnit, and DurationSeconds.
*)}type nonrec error = [ | `AccessDeniedException of AccessDeniedException.t| `InternalServerException of InternalServerException.t| `ResourceNotFoundException of ResourceNotFoundException.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
| `ResourceNotFoundException of ResourceNotFoundException.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
| `ResourceNotFoundException of ResourceNotFoundException.t
| `ThrottlingException of ThrottlingException.t
| `Unknown_operation_error of string * string option
| `ValidationException of ValidationException.t ]val to_value :
t ->
[> `Structure of
(string
* [> `List of
[> `Structure of
(string
* [> `Double of LegDistanceDouble.t
| `List of
[> `Double of Double.t
| `Structure of
(string
* [> `Double of StepDistanceDouble.t
| `Integer of StepGeometryOffsetInteger.t
| `List of [> `Double of Double.t ] list ])
list ]
list
| `Structure of
(string
* [> `List of
[> `List of [> `Double of Double.t ] list ]
list ])
list ])
list ]
list
| `Structure of
(string
* [> `Double of CalculateRouteSummaryDistanceDouble.t
| `Enum of string
| `List of [> `Double of Double.t ] list
| `String of String_.t ])
list ])
list ]