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) : CommonParcelable(source)

Constructors

Link copied to clipboard
constructor(latitude: Double, longitude: Double, altitude: Int, time: Int = currentTime(), satellitesInView: Int = 0, groundSpeed: Int = 0, groundTrack: Int = 0, precisionBits: Int = 0)
constructor(position: Position, defaultTime: Int = currentTime())

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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