KnownLocation

data class KnownLocation(val latitude: Double, val longitude: Double, val altitude: Double? = null, val horizontalAccuracy: Double? = null, val verticalAccuracy: Double? = null, val speed: Double? = null, val course: Double? = null, val time: KalugaDate) : Location

A Location where the current coordinates are known

Constructors

Link copied to clipboard
constructor(latitude: Double, longitude: Double, altitude: Double? = null, horizontalAccuracy: Double? = null, verticalAccuracy: Double? = null, speed: Double? = null, course: Double? = null, time: KalugaDate)

Properties

Link copied to clipboard
val altitude: Double? = null

the altitude above mean sea level associated with a location, measured in meters.

Link copied to clipboard
val course: Double? = null

the azimuth that is measured in degrees relative to true north

Link copied to clipboard

the estimated horizontal accuracy radius in meters of this location

Link copied to clipboard

Gets the Location.KnownLocation from a Location if it exists. Otherwise null is returned

Link copied to clipboard

the latitude of the location

Link copied to clipboard

The DMSCoordinate associated with the latitude of this location

Link copied to clipboard

the longitude of the location

Link copied to clipboard

The DMSCoordinate associated with the latitude of this longitude

Link copied to clipboard

Converts a Nullable Location.KnownLocation into a Location, where Location.UnknownLocation.WithoutLastLocation is returned if the location was null.

Link copied to clipboard
val speed: Double? = null

the velocity (measured in meters per second) at which the device is moving

Link copied to clipboard

the KalugaDate at which the location was detected

Link copied to clipboard

the estimated altitude accuracy in meters of this location