GeolocationPosition: coords property
Geolocation API
Geolocation API
The coords read-only property of the GeolocationPosition interface returns a GeolocationCoordinates object representing a geographic position. 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.
Value
A GeolocationCoordinates object instance.
Specifications
Browser compatibility
See also
- Using the Geolocation API
- GeolocationPosition