-
Notifications
You must be signed in to change notification settings - Fork 629
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
autocomplete
: add support for locationbias
and locationrestriction
parameters
#1011
Comments
If you would like to upvote the priority of this issue, please comment below or react with 👍 so we can see what is popular when we triage.@saeltz Thank you for opening this issue. 🙏
This is an automated message, feel free to ignore. |
Would love this feature as well! |
As you already mentioned, the only supported options right now are |
setBounds
for placeAutocomplete
autocomplete
: add support for locationbias
and locationrestriction
parameters
Is your feature request related to a problem? Please describe.
Imagine having a rectangle for which you want to use
placeAutocomplete
to autocomplete places. Currently, only using the epicentre and radius is supported. This yields to many irrelevant autocompletions outside of the rectangle.Describe the solution you'd like
The Google Maps SDK for Place Autocomplete supports
setBounds
with a southwest and northeast coordinate, see the documentation. It'd be awesome for this library to support that as well.Describe alternatives you've considered
Now we're using the alternative with radius and filtering afterwards if an autocompletion is within our rectangle. That is an inefficient solution, both looking at requests, API costs and code.
Additional context
We'd be willing to support on the implementation when given some guidance.
The text was updated successfully, but these errors were encountered: