diff --git a/googlemaps/google.maps.d.ts b/googlemaps/google.maps.d.ts index 1bd9c491f3..3be446e19d 100644 --- a/googlemaps/google.maps.d.ts +++ b/googlemaps/google.maps.d.ts @@ -1422,6 +1422,17 @@ declare module google.maps { DISTANCE, PROMINENCE } + + export class SearchBox { + constructor(inputField: HTMLInputElement, opts?: SearchBoxOptions); + getBounds(): LatLngBounds; + setBounds(bounds: LatLngBounds): void; + getPlaces(): PlaceResult[]; + } + + export interface SearchBoxOptions { + bounds: LatLngBounds; + } export interface TextSearchRequest { bounds: LatLngBounds;