Skip to main content

Interface: IOmhMapsLocationModule

@openmobilehub/maps-core.IOmhMapsLocationModule

The interface for the OmhMapsLocationModule.

Methods

getCurrentLocation

getCurrentLocation(): Promise<OmhCoordinate>

Requests the new location.

Returns

Promise<OmhCoordinate>

The current location.

Throws

When the location request fails.

Defined in

packages/core/src/modules/location/OmhMapsLocationModule.types.ts:12


getLastLocation

getLastLocation(): Promise<OmhCoordinate>

Requests the last known location.

Returns

Promise<OmhCoordinate>

The last known location.

Throws

When the location request fails.

Defined in

packages/core/src/modules/location/OmhMapsLocationModule.types.ts:18