Fix

data class Fix(val lat: Double, val lng: Double, val timeMs: Long, val accuracyM: Double, val speedMps: Double? = null, val bearingDeg: Double? = null, val altitudeM: Double? = null, val isMock: Boolean = false, val provider: String? = null, val odometerM: Double? = null)

One location sample, stripped to what a distance algorithm can legitimately use.

Deliberately not the platform's location type: binding the algorithm to android.location.Location or CLLocation is what made the original implementations untestable off-device.

Constructors

Link copied to clipboard
constructor(lat: Double, lng: Double, timeMs: Long, accuracyM: Double, speedMps: Double? = null, bearingDeg: Double? = null, altitudeM: Double? = null, isMock: Boolean = false, provider: String? = null, odometerM: Double? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val lat: Double
Link copied to clipboard
val lng: Double
Link copied to clipboard

Vehicle odometer reading in metres, when one is available.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Epoch millis of the fix, not of its arrival. Never substitute a wall clock here.