LOGBOOK

HELP

Quiz Entry - updated: 2026.07.14

What properties are available on the Geolocation position.coords object?

The coords object exposes latitude and longitude plus accuracy, and optionally altitude, altitudeAccuracy, heading, and speed when the device supplies them.

Available properties:

Property Description Unit
latitude Latitude Degrees
longitude Longitude Degrees
accuracy Horizontal accuracy Meters
altitude Altitude above sea level Meters
altitudeAccuracy Altitude accuracy Meters
heading Direction of travel Degrees (0-360)
speed Current speed Meters/second

Example:

navigator.geolocation.getCurrentPosition((pos) => {
    // 47.05
    console.log(pos.coords.latitude);
    // 8.31
    console.log(pos.coords.longitude);
    // 10 (meters)
    console.log(pos.coords.accuracy);
});

Note: Not all properties are always available. altitude, heading, and speed may be null depending on the device and context.

From Quiz: WEBT / Geolocation API and Responsive Layouts | Updated: Jul 14, 2026