Class GeolocationUtils

Geolocation utils contains utils to access the user location (GPS, IP location or wifi).

Devices with a GPS, for example, can take a minute or more to get a GPS fix, so less accurate data (IP location or wifi) may be returned.

Hierarchy

  • GeolocationUtils

Constructors

Methods

Constructors

Methods

  • Get the current geolocation from the browser using the location API.

    This location can be provided from GPS measure, estimated IP location or any other system available in the host. Precision may vary.

    Returns Promise<{
        coords: any;
        timestamp: number;
    }>

Generated using TypeDoc