Values.StepSourceRepresents an element of a leg within a route. A step contains instructions for how to move to the next step in the leg.
type nonrec t = {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.
*)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.
*)distance : StepDistanceDouble.t option;The travel distance between the step's StartPosition and EndPosition.
*)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.
*)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.
*)}val to_value :
t ->
[> `Structure of
(string
* [> `Double of StepDistanceDouble.t
| `Integer of StepGeometryOffsetInteger.t
| `List of [> `Double of Double.t ] list ])
list ]