Name
Geocoordinates — a geographical position
Synopsis
An object of this type represents a position on the surface of the earth.
Properties
readonly doubleaccuracyThe accuracy of the
latitudeandlongitudevalues, in meters.readonly doublealtitudeThe altitude, in meters above sea level, or
nullif altitude is not available.readonly doublealtitudeAccuracyThe accuracy, in meters, of the
altitudeproperty. Ifaltitudeisnull,altitudeAccuracywill also benull.readonly doubleheadingThe user’s direction of travel, in degrees clockwise from true north, or
nullif the heading is not available. If heading information is available, butspeedis 0,headingwill beNaN.readonly doublelatitudeThe user’s latitude in decimal degrees north of the equator.
readonly doublelongitudeThe user’s longitude in decimal degrees east of the Greenwich Meridian.
readonly doublespeedThe user’s speed in meters per second, or
nullif speed information is not available. This property will never be a negative number. See alsoheading.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access