Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data Step = Step' {}
- newStep :: Double -> Double -> NonEmpty Double -> NonEmpty Double -> Step
- step_geometryOffset :: Lens' Step (Maybe Natural)
- step_distance :: Lens' Step Double
- step_durationSeconds :: Lens' Step Double
- step_endPosition :: Lens' Step (NonEmpty Double)
- step_startPosition :: Lens' Step (NonEmpty Double)
Documentation
Represents an element of a leg within a route. A step contains instructions for how to move to the next step in the leg.
See: newStep
smart constructor.
Step' | |
|
Instances
Create a value of Step
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:geometryOffset:Step'
, step_geometryOffset
- 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
.
$sel:distance:Step'
, step_distance
- The travel distance between the step's StartPosition
and
EndPosition
.
$sel:durationSeconds:Step'
, step_durationSeconds
- 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.
$sel:endPosition:Step'
, step_endPosition
- 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.
$sel:startPosition:Step'
, step_startPosition
- 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.
step_geometryOffset :: Lens' Step (Maybe Natural) Source #
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
.
step_distance :: Lens' Step Double Source #
The travel distance between the step's StartPosition
and
EndPosition
.
step_durationSeconds :: Lens' Step Double Source #
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.