Type '{ input: string; key: string; language: string; region: string; }' is not assignable to type '{ input: string; sessiontoken?: string | undefined; offset?: number | undefined; origin?: LatLng | undefined; location?: LatLng | undefined; radius?: number | undefined; language?: string | undefined; types?: PlaceAutocompleteType | undefined; components?: string[] | undefined; strictbounds?: boolean | undefined; } ...'.
Object literal may only specify known properties, and 'region' does not exist in type '{ input: string; sessiontoken?: string | undefined; offset?: number | undefined; origin?: LatLng | undefined; location?: LatLng | undefined; radius?: number | undefined; language?: string | undefined; types?: PlaceAutocompleteType | undefined; components?: string[] | undefined; strictbounds?: boolean | undefined; } ...'.ts(2322)
autocomplete.d.ts(45, 5): The expected type comes from property 'params' which is declared here on type 'PlaceAutocompleteRequest'
Object literal may only specify known properties, and 'region' in type 'PlaceAutocompleteRequest['params']'
Is the region parameter still a valid parameter to use? It looks like the JavaScript client does support the region parameter so I presume it's just missing from this package?
Based on the place autocomplete web service documentation, there is an optional parameter called
region
If I understood correctly this parameter allows to bias in the search result to be more locally relevant to a given region.
It looks like this parameter was not implemented in this package.
Steps to reproduce
Typescript error
Object literal may only specify known properties, and 'region' in type 'PlaceAutocompleteRequest['params']'
Is the
region
parameter still a valid parameter to use? It looks like the JavaScript client does support the region parameter so I presume it's just missing from this package?