GeolocationPosition

The GeolocationPosition interface represents the position of the concerned device at a given time. Available only in secure contexts.

MDN Reference

Properties

Link copied to clipboard

The coords read-only property of the GeolocationPosition interface returns a GeolocationCoordinates object representing a geographic position.

Link copied to clipboard

The timestamp read-only property of the GeolocationPosition interface represents the date and time that the position was acquired by the device.

Functions

Link copied to clipboard
fun toJSON(): JsAny

The toJSON() method of the GeolocationPosition interface is a Serialization; it returns a JSON representation of the GeolocationPosition object.