MDN self-hosted library · e01.org

GeolocationPosition: coords property

Geolocation API

no runnable cells web-api-instance-property upstream source

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