Position

data class Position(val latitude: Double, val longitude: Double, val altitude: Int, val time: Int = currentTime(), val satellitesInView: Int = 0, val groundSpeed: Int = 0, val groundTrack: Int = 0, val precisionBits: Int = 0) : Parcelable

Constructors

Link copied to clipboard
constructor(position: <Error class: unknown class>, defaultTime: Int = currentTime())

Create our model object from a protobuf. If time is unspecified in the protobuf, the provided default time will be used.

constructor(latitude: Double, longitude: Double, altitude: Int, time: Int = currentTime(), satellitesInView: Int = 0, groundSpeed: Int = 0, groundTrack: Int = 0, precisionBits: Int = 0)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val groundSpeed: Int = 0
Link copied to clipboard
val groundTrack: Int = 0
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val time: Int

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String