Skip to content

Coords

class Coords

Geographic coordinates attached to a Location.


Members

accuracy

double accuracy

Horizontal accuracy radius in meters.

altitude

double altitude

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

double altitudeAccuracy

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

double ellipsoidalAltitude

Altitude above the WGS84 reference ellipsoid in meters.

floor

int? floor

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

heading

double heading

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

double headingAccuracy

Heading accuracy in degrees.

Note

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

latitude

double latitude

Latitude in decimal degrees.

longitude

double longitude

Longitude in decimal degrees.

speed

double speed

Ground speed in meters per second.

Note

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

speed_accuracy

double speedAccuracy

Speed accuracy in meters per second.

Note

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