Segment

class Segment(val start: RoutePoint, val end: RoutePoint)

Represents a line between two RoutePoint.

Parameters

start

The starting RoutePoint of the line segment.

end

The end RoutePoint of the line segment.

Constructors

Link copied to clipboard
fun Segment(start: RoutePoint, end: RoutePoint)

Functions

Link copied to clipboard
fun intermediatePoint(distanceAlongSegment: Distance): GeoPoint

Calculates intermediate point of segment.

Properties

Link copied to clipboard
Link copied to clipboard

The length of this segment.

Link copied to clipboard

The offset of this segment from the start of the route.

Link copied to clipboard