Name

Geocoordinates — a geographical position

Synopsis

An object of this type represents a position on the surface of the earth.

Properties

readonly double accuracy

The accuracy of the latitude and longitude values, in meters.

readonly double altitude

The altitude, in meters above sea level, or null if altitude is not available.

readonly double altitudeAccuracy

The accuracy, in meters, of the altitude property. If altitude is null, altitude Accuracy will also be null.

readonly double heading

The user’s direction of travel, in degrees clockwise from true north, or null if the heading is not available. If heading information is available, but speed is 0, heading will be NaN.

readonly double latitude

The user’s latitude in decimal degrees north of the equator.

readonly double longitude

The user’s longitude in decimal degrees east of the Greenwich Meridian.

readonly double speed

The user’s speed in meters per second, or null if speed information is not available. This property will never be a negative number. See also heading.

Get JavaScript: The Definitive Guide, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.