From 10ae8d9b64acf361e2aa866b6ce41ebcf38511d1 Mon Sep 17 00:00:00 2001 From: Thilina Dilshan <38967633+thilina4321@users.noreply.github.com> Date: Fri, 7 Jul 2023 15:53:46 +0530 Subject: [PATCH] Change the package to use the new version of google's places auto complete --- src/types.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/types.ts b/src/types.ts index 10626c1..0204b9b 100644 --- a/src/types.ts +++ b/src/types.ts @@ -12,6 +12,13 @@ export interface LatLng { lng: number; } +export interface LocationRestriction { + north?: number, + south?: number, + west?: number, + east?: number, +} + export interface AutocompletionRequest { bounds?: [LatLng, LatLng]; componentRestrictions?: { country: string | string[] }; @@ -19,6 +26,8 @@ export interface AutocompletionRequest { offset?: number; radius?: number; types?: string[]; + locationRestriction?: LocationRestriction + } export type Option = {