Module Values.RouteLegSource

A 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.

Sourcetype nonrec t = {
  1. 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.

    *)
  2. geometry : RouteLegGeometry.t option;
    (*

    Geometry of the area to be avoided.

    *)
  3. 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.

    *)
  4. pedestrianLegDetails : RoutePedestrianLegDetails.t option;
    (*

    Details related to the pedestrian leg.

    *)
  5. 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

    *)
  6. type_ : RouteLegType.t option;
    (*

    Type of the leg.

    *)
  7. vehicleLegDetails : RouteVehicleLegDetails.t option;
    (*

    Details related to the vehicle leg.

    *)
}
Sourceval make : ?ferryLegDetails:??? -> ?geometry:??? -> ?language:??? -> ?pedestrianLegDetails:??? -> ?travelMode:??? -> ?type_:??? -> ?vehicleLegDetails:??? -> unit -> t
Sourceval 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 ]
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