GeoPosition

data class GeoPosition : Parcelable

Represents position, speed, and course information as provided by a positioning source for a distinct moment in time.

Constructors

GeoPosition
Link copied to clipboard
fun GeoPosition(coordinates: GeoCoordinates, speed: Double, course: Float, timestamp: Long)

Types

Companion
Link copied to clipboard
object Companion

Functions

describeContents
Link copied to clipboard
abstract fun describeContents(): Int
isValid
Link copied to clipboard
fun isValid(): Boolean
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

altitudeAccuracy
Link copied to clipboard
val altitudeAccuracy: Double

The accuracy of the altitude, in meters.

coordinates
Link copied to clipboard
val coordinates: GeoCoordinates

The geographical location of the position GeoCoordinates

course
Link copied to clipboard
val course: Float

The course (direction of travel) of the position, in degrees. Valid course values are in the range [0, 360), with 0 degrees representing north and values increasing clockwise.

latitudeAccuracy
Link copied to clipboard
val latitudeAccuracy: Double

The accuracy of the latitude coordinate, in meters.

longitudeAccuracy
Link copied to clipboard
val longitudeAccuracy: Double

The accuracy of the longitude coordinate, in meters.

speed
Link copied to clipboard
val speed: Double

The movement speed of the position, in km/h

timestamp
Link copied to clipboard
val timestamp: Long

The timestamp of acquired data in seconds from UNIX epoch