Skip to content

Coords

export interface Coords {

Geographic coordinates attached to a Location.


Members

accuracy

accuracy: number;

Horizontal accuracy radius in meters.

altitude

altitude?: number;

Altitude above a reference plane in meters.

iOS

Altitude above mean sea level.

Android

Altitude above the WGS84 reference ellipsoid. See also ellipsoidal_altitude.

altitude_accuracy

altitude_accuracy?: number;

Vertical accuracy in meters. Returns -1 if unavailable.

iOS

When positive, the altitude value is within ±altitude_accuracy meters. When negative, altitude is invalid. Determining altitude accuracy requires a GPS-capable device; on some devices this value is always negative.

Android

Defined as the 1-sigma vertical accuracy at 68% confidence — the half-width of the range above and below altitude within which the true altitude has a 68% probability of falling.

ellipsoidal_altitude

ellipsoidal_altitude?: number;

Altitude above the WGS84 reference ellipsoid in meters.

floor

floor?: number;

iOS only Floor within a building, when indoor-positioning hardware (e.g. Bluetooth beacons) is available.

heading

heading?: number;

Direction of travel in degrees (0–360, clockwise from true north).

Note

Only present when the location came from GPS. Returns -1 otherwise.

heading_accuracy

heading_accuracy?: number;

Heading accuracy in degrees.

Note

Only present when the location came from GPS. Returns -1 otherwise.

latitude

latitude: number;

Latitude in decimal degrees.

longitude

longitude: number;

Longitude in decimal degrees.

speed

speed?: number;

Ground speed in meters per second.

Note

Only present when the location came from GPS. Returns -1 otherwise.

speed_accuracy

speed_accuracy?: number;

Speed accuracy in meters per second.

Note

Only present when the location came from GPS. Returns -1 otherwise.