Results 1 - 20 of 25

Coordinates

The Coordinates interface represents the position and altitude of the device on Earth, as well as the accuracy with which these properties are calculated.
API Geolocation API

Using geolocation

The geolocation API allows the user to provide their location to web applications if they so desire. For privacy reasons, the user is asked for permission to report location information.
Geolocation API Guide Intermediate

Position

The Position interface represents the position of the concerned device at a given time. The position, represented by a Coordinates object, comprehends the 2D position of the device, on a spheroid representing the Earth, but also its altitude and its speed.
API Geolocation API Position

PositionError

The PositionError interface represents the reason of an error occurring when using the geolocating device.
API Geolocation API

Coordinates.accuracy

The Coordinates.accuracy read-only property is a strictly positive double representing the accuracy, with a 95% confidence level, of the Coordinates.latitude and Coordinates.longitude properties expressed in meters.
API Coordinates Geolocation API Property

Coordinates.altitude

The Coordinates.altitude read-only property is a double representing the altitude of the position in meters, relative to sea level. This value is null if the implementation cannot provide this data.
API Coordinates Geolocation API Property

Coordinates.altitudeAccuracy

The Coordinates.altitudeAccuracy read-only property is a strictly positive double representing the accuracy, with a 95% confidence level, of the altitude expressed in meters. This value is null if the implementation doesn't support measuring altitude.
API Coordinates Geolocation API Property

Coordinates.heading

The Coordinates.heading read-only property is a double representing the direction in which the device is traveling. This value, specified in degrees, indicates how far off from heading due north the device is. Zero degrees represents true true north, and the direction is determined clockwise (which means that east is 90 degrees and west is 270 degrees). If Coordinates.speed is 0, heading is NaN. If the device is not able to provide heading information, this value is null.
API Coordinates Geolocation API Property

Coordinates.latitude

The Coordinates.latitude read-only property is a double representing the latitude of the position in decimal degrees.
API Coordinates Geolocation API Property

Coordinates.longitude

The Coordinates.longitude read-only property is a double representing the longitude of the position in decimal degrees.
API Coordinates Geolocation API Property

Coordinates.speed

The Coordinates.speed read-only property is a double representing the velocity of the device in meters per second. This value is null if the implementation is not able to measure it.
API Coordinates Geolocation API Property

Position.coords

The Position.coords read-only property, a Coordinates object, represents a geographic attitude: it contains the location, that is longitude and latitude on the Earth, the altitude, and the speed of the object concerned, regrouped inside the returned value. It also contains accuracy information about these values.
API Geolocation API Position Property

Position.timestamp

The Position.timestamp read-only property, a DOMTimeStamp object, represents the date and the time of the creation of the Position object it belongs to. The precision is to the millisecond.
API Geolocation API Position Property

PositionError.code

The PositionError.code read-only property is an unsigned short representing the error code. The following values are possible:
API Geolocation API PositionError Property

PositionError.message

The PositionError.message read-only property returns a human-readable DOMString describing the details of the error.
API Geolocation API PositionError Property

PositionOptions

The PositionOptions interface describes an object containing option properties to pass as a parameter of Geolocation.getCurrentPosition() and Geolocation.watchPosition().
API Geolocation API Interface Reference

Geolocation

The Geolocation interface represents an object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location.
Advanced API Geolocation API Interface Reference Référence

Navigator.geolocation

The Navigator.geolocation read-only property returns a Geolocation object that gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location.
API Geolocation API Navigator Property Reference

NavigatorGeolocation

NavigatorGeolocation contains a creation method allowing objects implementing it to obtain a Geolocation instance.
API Geolocation API No Interface Reference

PositionOptions.enableHighAccuracy

The PositionOptions.enableHighAccuracy property is a Boolean that indicates the application would like to receive the best possible results. If true and if the device is able to provide a more accurate position, it will do so. Note that this can result in slower response times or increased power consumption (with a GPS chip on a mobile device for example). On the other hand, if false (the default value), the device can take the liberty to save resources by responding more quickly and/or using less power.
API Geolocation API NeedsExample PositionOptions Property Reference