The location of the device.

interface GeoPosition {
    heading: number;
    horizontalAccuracy: number;
    isHeadingAvailable: boolean;
    latitude: number;
    longitude: number;
    verticalAccuracy: number;
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
}

Hierarchy (view full)

Properties

heading: number

Represents 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.

horizontalAccuracy: number

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

isHeadingAvailable: boolean

Indicates whether the device is able to provide heading information.

latitude: number

The position's latitude in decimal degrees.

longitude: number

The position's longitude in decimal degrees.

verticalAccuracy: number

The accuracy of the altitude property, expressed in meters.

Methods

  • Returns true if the object matches or derives from the passed in type.

    Parameters

    • type: string

    Returns boolean

  • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

    Parameters

    Returns boolean