A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/GeolocationPosition below:

GeolocationPosition - Web APIs | MDN

GeolocationPosition

Baseline Widely available *

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

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

Instance properties

The GeolocationPosition interface doesn't inherit any properties.

GeolocationPosition.coords Read only

Returns a GeolocationCoordinates object defining the current location.

GeolocationPosition.timestamp Read only

Returns a timestamp, given as Unix time in milliseconds, representing the time at which the location was retrieved.

Instance methods

The GeolocationPosition interface doesn't inherit any methods.

GeolocationPosition.toJSON()

Returns a JSON representation of the GeolocationPosition object and enables serialization with JSON.stringify().

Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3