Location

sealed class Location

A location data object. This object contains a location data, including its position point, velocity, accuracy, course etc.

Since

200.1.0

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard

A collection of well-known constants for keys and values in Location.additionalSourceProperties

Properties

Link copied to clipboard

A set of key-value pairs that provide additional metadata, such as source and accuracy details of this Location. When a Location is created, implementation-specific or platform-specific details about the location may be added to this dictionary of additional source properties. This information is provided as a set of key-value pairs, where the (case-sensitive) String key describes the type of data held in the Any value. Values are basic data types such as string, numeric, boolean, or date.

Link copied to clipboard

The course of the location in degrees clockwise, 0 being true North.

Link copied to clipboard

The horizontal accuracy of the location in meters. This property will return NaN if the horizontal accuracy is not available.

Link copied to clipboard

Indicates whether this is an outdated device position retrieved and cached earlier and therefore not guaranteed to represent the current location.

Link copied to clipboard

The position of the location.

Link copied to clipboard

The speed of the location in meters per second. This property will return NaN if the speed is not available.

Link copied to clipboard

The timestamp of the location.

Link copied to clipboard

The vertical accuracy of the location in meters. This property will return NaN if the vertical accuracy is not available.