olefirenko / vue-google-autocomplete

A Vue.js autosuggest component for the Google Places API.
https://olefirenko.github.io/vue-google-autocomplete/
MIT License
505 stars 258 forks source link

Adds a "boundLimits" prop that adds AutocompletionRequest.bounds option to the api request #167

Open Apeli opened 2 years ago

Apeli commented 2 years ago

We needed to narrow down the area of our autocomplete searches.

Needs the lower left (South-West) and upper right (North-East) point coordinates of the bounding rectangle.

Example use in the component:

<vue-google-autocomplete
:boundLimits="{sw:{lat:60.096670, lon:24.583181}, ne:{lat:60.391643, lon:25.214419}}"
...
/>

https://developers.google.com/maps/documentation/javascript/reference/places-autocomplete-service#AutocompletionRequest.bounds

harry-fakir commented 2 years ago

bump

ZaidAbo commented 1 year ago

Hi ... can u please add this?