UNPKG

ng4-geoautocomplete

Version:

angular 4 compatable google autocomplete with server side api support and AOT enabled

24 lines (23 loc) 1.13 kB
import { GlobalRef } from './windowRef.service'; import { Http } from '@angular/http'; import { LocalStorageService } from './storage.service'; import 'rxjs/Rx'; export declare class AutoCompleteSearchService { private _http; private platformId; private _global; private _localStorageService; constructor(_http: Http, platformId: Object, _global: GlobalRef, _localStorageService: LocalStorageService); getPredictions(url: string, query: string): Promise<any>; getLatLngDetail(url: string, lat: number, lng: number): 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); }