LocationData


class LocationData


Data representing one location point with direction.

Summary

Public constructors

LocationData(
    latitude: @FloatRange(from = -90.0, to = 90.0) Double,
    longitude: @FloatRange(from = -180.0, to = 180.0) Double,
    altitude: Double,
    bearing: Double
)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Double

Altitude of location in meters or ALTITUDE_UNAVAILABLE if not available.

Double

Bearing in degrees within the range of 0.0 (inclusive), 360.0(exclusive) or BEARING_UNAVAILABLE if not available.

Double

Latitude of location.

Double

Longitude of location.

Public constructors

LocationData

Added in 1.0.0
LocationData(
    latitude: @FloatRange(from = -90.0, to = 90.0) Double,
    longitude: @FloatRange(from = -180.0, to = 180.0) Double,
    altitude: Double = ALTITUDE_UNAVAILABLE,
    bearing: Double = BEARING_UNAVAILABLE
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

altitude

Added in 1.0.0
val altitudeDouble

Altitude of location in meters or ALTITUDE_UNAVAILABLE if not available.

bearing

Added in 1.0.0
val bearingDouble

Bearing in degrees within the range of 0.0 (inclusive), 360.0(exclusive) or BEARING_UNAVAILABLE if not available.

latitude

Added in 1.0.0
val latitudeDouble

Latitude of location. Range from -90.0 to = 90.0.

longitude

Added in 1.0.0
val longitudeDouble

Longitude of location. Range from -180.0 to = 180.0.