UNPKG

google-places-web

Version:

A simple wrapper for the Google Places Web API

19 lines (18 loc) 667 B
import { BaseSearch } from './BaseSearch'; import { PlacesRequest, PlacesTypeRequest, GooglePlaceBaseResponse, PlacesAutoCompletePrediction } from '../types'; export interface AutoCompleteSearchRequest extends PlacesRequest, PlacesTypeRequest { input: string; sessiontoken?: string; offset?: number; origin?: string; location?: string; radius?: number; language?: string; components?: string; strictbounds: boolean; } export interface AutoCompleteResponse extends GooglePlaceBaseResponse { predictions: PlacesAutoCompletePrediction[]; } export declare class AutoCompleteSearch extends BaseSearch<AutoCompleteSearchRequest> { }