PMVehiclePosition

data class PMVehiclePosition(val coordinates: PMGeoCoordinates? = null, val speed: Float = 0.0f, val speedUnits: PMSpeedUnits, val heading: Float = 0.0f)

Represents information about current vehicle location, speed and course

Constructors

Link copied to clipboard
fun PMVehiclePosition(coordinates: PMGeoCoordinates? = null, speed: Float = 0.0f, speedUnits: PMSpeedUnits, heading: Float = 0.0f)

Properties

Link copied to clipboard

Defines geographical location of the current vehicle position

Link copied to clipboard
val heading: Float = 0.0f

Defines 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.

Link copied to clipboard
val speed: Float = 0.0f

Defines movement speed

Link copied to clipboard

Defines current speed units for given speed
Default value is PMSpeedUnits.Kmh