MDK 3.7.3
class Location(longitude: Double, latitude: Double, val timestamp: Long = -1, val level: Int = -1, val accuracy: Float = Float.NaN, val heightAboveSea: Float = Float.NaN, val heightAboveGround: Float = Float.NaN, val mode: LocationMode = LocationMode.Generic, val steps: Int = -1) : Coord2D
Represents a location reading with associated data.
This data class encapsulates the details of a location fix, including the timestamp, geographical coordinates, level, accuracy, and height information. It also includes the number of steps taken at the time of the location fix.
Parameters
longitude
The longitude of the location fix in degrees.
latitude
The latitude of the location fix in degrees.
Constructors
Properties
The height above ground level at the location fix in meters. If not provided, it defaults to Float.NaN.
The height above sea level at the location fix in meters. If not provided, it defaults to Float.NaN.
The mode of the location fix. If not provided, it defaults to LocationMode.Generic.