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
andlongitude
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. Ifaltitude
isnull
,altitude
Accuracy
will also benull
.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, butspeed
is 0,heading
will beNaN
.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 alsoheading
.
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.