Location

data class Location(val position: Position, val accuracy: Double, val bearing: Double?, val bearingAccuracy: Double?, val speed: Double?, val speedAccuracy: Double?, val timestamp: TimeMark)(source)

Describes a user's location

Constructors

Link copied to clipboard
constructor(position: Position, accuracy: Double, bearing: Double?, bearingAccuracy: Double?, speed: Double?, speedAccuracy: Double?, timestamp: TimeMark)

Properties

Link copied to clipboard

the accuracy of position in meters, i.e. the true location is within accuracy meters of position

Link copied to clipboard

the bearing of the user, i.e. which direction the user is facing/travelling, in degrees east of true north, i.e. 0° being north, 90° being east, etc.

Link copied to clipboard

the accuracy of bearing, i.e. the true bearing is within +/- bearingAccuracy degrees of bearing

Link copied to clipboard

the geographic Position of the user

Link copied to clipboard

the current speed of the user in meters per second

Link copied to clipboard

the accuracy of speed, i.e. the true speed is within +/- speedAccuracy m/s of speed

Link copied to clipboard

the point in time when this location was acquired. This uses TimeMark instead of e.g. kotlin.time.Instant, to allow calculating how old a location is, even if the system clock changes.