LegSegment
class LegSegment(p1: Coordinate, p2: Coordinate, val levelDifference: Float? = null, val stepKind: Step.Kind? = null, val stepDirection: Step.Direction? = null) : Segment
A Segment belonging to a navigation leg, carrying step-related metadata.
Constructors
Link copied to clipboard
constructor(p1: Coordinate, p2: Coordinate, levelDifference: Float? = null, stepKind: Step.Kind? = null, stepDirection: Step.Direction? = null)
Properties
Link copied to clipboard
The coordinates of the segment, i.e. [p1, p2].
Link copied to clipboard
Link copied to clipboard
The first coordinate of the segment.
Link copied to clipboard
The second coordinate of the segment.
Link copied to clipboard
The direction of the step this segment belongs to, if any.