LocationMeasurement

@Serializable
data class LocationMeasurement(val position: Position, val horizontalAccuracy: Length? = null, val altitudeAccuracy: Length? = null, val distancePerSecond: Length? = null, val distancePerSecondAccuracy: Length? = null, val course: Bearing? = null, val courseAccuracy: Rotation? = null, val measuredAt: Instant)(source)

One measured geographic location.

Constructors

Link copied to clipboard
constructor(position: Position, horizontalAccuracy: Length? = null, altitudeAccuracy: Length? = null, distancePerSecond: Length? = null, distancePerSecondAccuracy: Length? = null, course: Bearing? = null, courseAccuracy: Rotation? = null, measuredAt: Instant)

Properties

Link copied to clipboard
val altitudeAccuracy: Length?

Estimated altitude error, or null when unknown or when position contains no altitude.

Link copied to clipboard
val course: Bearing?

Bearing in the direction of travel, or null when the source reports no course.

Link copied to clipboard
val courseAccuracy: Rotation?

Estimated course error, or null when unknown.

Link copied to clipboard
val distancePerSecond: Length?

Distance that corresponds to one second at the reported speed, or null when the source reports no speed.

Link copied to clipboard

Estimated error in distancePerSecond, or null when the error is unknown.

Link copied to clipboard
val horizontalAccuracy: Length?

Estimated horizontal error radius, or null when unknown.

Link copied to clipboard

Wall-clock instant when the location was measured.

Link copied to clipboard
val position: Position

Geographic position, with an optional altitude in meters.