Values.RouteLegSourceA leg is a section of a route from one waypoint to the next. A leg could be of type Vehicle, Pedestrian or Ferry. Legs of different types could occur together within a single route. For example, a car employing the use of a Ferry will contain Vehicle legs corresponding to journey on land, and Ferry legs corresponding to the journey via Ferry.
type nonrec t = {ferryLegDetails : RouteFerryLegDetails.t option;FerryLegDetails is populated when the Leg type is Ferry, and provides additional information that is specific to ferry travel. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.
*)geometry : RouteLegGeometry.t option;Geometry of the area to be avoided.
*)language : LanguageTag.t option;List of languages for instructions within steps in the response. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.
*)pedestrianLegDetails : RoutePedestrianLegDetails.t option;Details related to the pedestrian leg.
*)travelMode : RouteLegTravelMode.t option;Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility. Default value: Car
*)type_ : RouteLegType.t option;Type of the leg.
*)vehicleLegDetails : RouteVehicleLegDetails.t option;Details related to the vehicle leg.
*)}val to_value :
t ->
[> `Structure of
(string
* [> `Enum of string
| `String of LanguageTag.t
| `Structure 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 ]