Interface GeolocationCoordinates

    Available only in secure contexts.

    MDN Reference

    interface GeolocationCoordinates {
        accuracy: number;
        altitude: number;
        altitudeAccuracy: number;
        heading: number;
        latitude: number;
        longitude: number;
        speed: number;
        toJSON(): any;
    }

    Properties

    accuracy: number
    altitude: number
    altitudeAccuracy: number
    heading: number
    latitude: number
    longitude: number
    speed: number

    Methods