Module Values.StepSource

Represents an element of a leg within a route. A step contains instructions for how to move to the next step in the leg.

Sourcetype nonrec t = {
  1. startPosition : Position.t option;
    (*

    The starting position of a step. If the position is the first step in the leg, this position is the same as the start position of the leg.

    *)
  2. endPosition : Position.t option;
    (*

    The end position of a step. If the position the last step in the leg, this position is the same as the end position of the leg.

    *)
  3. distance : StepDistanceDouble.t option;
    (*

    The travel distance between the step's StartPosition and EndPosition.

    *)
  4. durationSeconds : StepDurationSecondsDouble.t option;
    (*

    The estimated travel time, in seconds, from the step's StartPosition to the EndPosition. . The travel mode and departure time that you specify in the request determines the calculated time.

    *)
  5. geometryOffset : StepGeometryOffsetInteger.t option;
    (*

    Represents the start position, or index, in a sequence of steps within the leg's line string geometry. For example, the index of the first step in a leg geometry is 0. Included in the response for queries that set IncludeLegGeometry to True.

    *)
}
Sourceval make : ?startPosition:??? -> ?endPosition:??? -> ?distance:??? -> ?durationSeconds:??? -> ?geometryOffset:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Double of StepDistanceDouble.t | `Integer of StepGeometryOffsetInteger.t | `List of [> `Double of Double.t ] 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