import { HttpRequest } from '@relevance/core'; import { ProcessingService } from '@relevance/angular-core'; import { ILocationCoords, ILocationInfo } from './geo.model'; /** * This service is used for geolocalization. */ export declare class GeolocationService { private processingService; private lastError; constructor(processingService: ProcessingService); /** * Check if the permission for location has been granted. */ hasPermission(): boolean; /** * Get the current coordinates. */ getCurrentCoordinates(): Promise; /** * Get current location information. */ getCurrentLocation(distance?: number): Promise; /** * Perform a reverse geocoding location match. */ getLocationsNear(lat: number, long: number, distance?: number, max_count?: number): HttpRequest; getLocationsNearMe(distance?: number, max_count?: number): Promise; /** * Perform a geocoding location match. */ getLocationsLike(name: string): HttpRequest; }