Skip to Content
JavaScript: The Definitive Guide, 6th Edition
book

JavaScript: The Definitive Guide, 6th Edition

by David Flanagan
May 2011
Intermediate to advanced
1093 pages
40h 54m
English
O'Reilly Media, Inc.
Content preview from JavaScript: The Definitive Guide, 6th Edition

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.

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.
Start your free trial

You might also like

JavaScript: The Definitive Guide, 5th Edition

JavaScript: The Definitive Guide, 5th Edition

David Flanagan

Publisher Resources

ISBN: 9781449393854Errata PageSupplemental Content