ngx-geoautocomplete
Version:
angular 6+ compatible google autocomplete with server side api support and AOT enabled
24 lines (23 loc) • 1.15 kB
TypeScript
import { GlobalRef } from './windowRef.service';
import { HttpClient } from '@angular/common/http';
import { LocalStorageService } from './storage.service';
import 'rxjs/Rx';
export declare class AutoCompleteSearchService {
private _http;
private platformId;
private _global;
private _localStorageService;
constructor(_http: HttpClient, platformId: Object, _global: GlobalRef, _localStorageService: LocalStorageService);
getPredictions(url: string, query: string): Promise<any>;
getLatLngDetail(url: string, lat: string, lng: string): Promise<any>;
getPlaceDetails(url: string, placeId: string): Promise<any>;
getGeoCurrentLocation(): Promise<any>;
getGeoLatLngDetail(latlng: any): Promise<any>;
getGeoPrediction(params: any): Promise<any>;
getGeoPlaceDetail(placeId: string): Promise<any>;
getGeoPaceDetailByReferance(referance: string): Promise<any>;
addRecentList(localStorageName: string, result: any, itemSavedLength: number): any;
getRecentList(localStorageName: string): Promise<any>;
private getUniqueResults(arr);
private geoPredictionCall(placesService, queryInput);
}