TripLocation: {
    altitude: number | null;
    bearing: number | null;
    bearingAccuracy: number | null;
    horizontalAccuracy: number | null;
    latitude: number;
    longitude: number;
    speed: number | null;
    speedAccuracy: number | null;
    timestamp: number;
    transportMode: TransportMode;
    verticalAccuracy: number | null;
}

Type declaration

  • altitude: number | null

    Returns the altitude of this location in meters above the WGS84 reference ellipsoid.
    If this location does not have an altitude available, then this value will be null.

  • bearing: number | null

    Returns the bearing at the time of this location in degrees.
    Bearing is the horizontal direction of travel of this device and is unrelated to the device orientation. The bearing is guaranteed to be in the range [0, 360).

    If this location does not have a bearing, then this value will be null.

  • bearingAccuracy: number | null

    Returns the estimated bearing accuracy in degrees of this location at the 68th percentile confidence level. This means that there is 68% chance that the true bearing at the time of this location falls within bearing +/- this uncertainty.

    If this location does not have a bearing accuracy, then this value will be null.

  • horizontalAccuracy: number | null

    The location's horizontal accuracy in meters.
    If this location does not have accuracy, then this value will be null.

  • latitude: number

    The latitude in degrees.

  • longitude: number

    The longitude in degrees.

  • speed: number | null

    Returns the speed at the time of this location, in meters per second.
    If this location does not have a speed, then this value will be null.

  • speedAccuracy: number | null

    Returns the estimated speed accuracy in meters per second of this location at the 68th percentile confidence level. This means that there is 68% chance that the true speed at the time of this location falls within speed +/- this uncertainty.

    If this location does not have a speed accuracy, then this value will be null.

  • timestamp: number

    The timestamp in milliseconds since January 1, 1970, 00:00:00 UTC.

  • transportMode: TransportMode

    The most probable transport mode at the time of this location.

  • verticalAccuracy: number | null

    Returns the estimated altitude accuracy in meters of this location at the 68th percentile confidence level. This means that there is 68% chance that the true altitude of this location falls within altitude +/- this uncertainty.

    If this location does not have a vertical accuracy, then this value will be null.