On this page
Properties
Methods

Interface GeolocationPosition

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

MDN Reference

interface GeolocationPosition {
    coords: GeolocationCoordinates;
    timestamp: number;
    toJSON(): any;
}
Index

Properties

Methods

Properties

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

MDN Reference

timestamp: number

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

MDN Reference

Methods

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

    MDN Reference

    Returns any

Was this helpful?
SDK JS
Reference
GeolocationPosition