GPSTraceImpl

Constructors

Link copied to clipboard
constructor(trace: Array<GPSPoint>)
Builds a new trace from the given points.
constructor(trace: List<GPSPoint>)
Builds a new trace from the given list of points.

Properties

Link copied to clipboard
val points: List<P>

Functions

Link copied to clipboard
open fun equals(other: Any): Boolean
Link copied to clipboard
open fun forEach(action: Consumer<in T>)
Link copied to clipboard
Returns the last point of the trace.
Link copied to clipboard
open fun getFinalTime(): Time
Returns the time of the last point of the trace.
Link copied to clipboard
Returns the first point of the trace.
Link copied to clipboard
open fun getNextPosition(time: Time): GPSPoint
Returns the first point of the trace after the given time.
Link copied to clipboard
open fun getPoint(step: Int): P
Link copied to clipboard
Returns the last point of the trace before the given time.
Link copied to clipboard
open fun getStartTime(): Time
Returns the time of the first point of the trace.
Link copied to clipboard
open fun getTripTime(): Double
Returns the time required to travel the route.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun interpolate(time: Time): GeoPosition
Interpolates the position along the trace at the given time.
Link copied to clipboard
open fun iterator(): Iterator<P>
abstract fun iterator(): Iterator<T>
Link copied to clipboard
open fun length(): Double
Link copied to clipboard
open fun size(): Int
Link copied to clipboard
Link copied to clipboard
open fun startAt(time: Time): GPSTraceImpl
Shifts the trace so that it starts at the given time.
Link copied to clipboard
open fun stream(): Stream<P>
Link copied to clipboard
open fun toString(): String