fake-geolocation
    Preparing search index...

    Interface GeolocationCoordinatesParameters

    Parameters for creating a GeolocationCoordinates object.

    interface GeolocationCoordinatesParameters {
        accuracy: number;
        altitude: null | number;
        altitudeAccuracy: null | number;
        heading: null | number;
        latitude: number;
        longitude: number;
        speed: null | number;
    }
    Index

    Properties

    accuracy: number

    The accuracy of the latitude and longitude properties, expressed in meters.

    See GeolocationCoordinates.accuracy

    altitude: null | number

    The position's altitude in meters, relative to nominal sea level. This value can be null if the implementation cannot provide the data.

    See GeolocationCoordinates.altitude

    altitudeAccuracy: null | number

    The accuracy of the altitude expressed in meters. This value can be null if the implementation cannot provide the data.

    See GeolocationCoordinates.altitudeAccuracy

    heading: null | number

    The direction towards which the device is facing. This value, specified in degrees, indicates how far off from heading true north the device is. 0 degrees represents true north, and the direction is determined clockwise (which means that east is 90 degrees and west is 270 degrees). If speed is 0 or the device is unable to provide heading information, heading is null.

    See GeolocationCoordinates.heading

    latitude: number

    The position's latitude in decimal degrees.

    See GeolocationCoordinates.latitude

    longitude: number

    The position's longitude in decimal degrees.

    See GeolocationCoordinates.longitude

    speed: null | number

    The velocity of the device in meters per second. This value can be null if the implementation cannot provide the data.

    See GeolocationCoordinates.speed