-
Notifications
You must be signed in to change notification settings - Fork 27
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
Filter results by country? #6
Comments
In vue-place-autocomplete/src/PlaceAutocompleteField.vue line 306 is:
Unfortunetly I do not know how to use this. |
This should works:
|
This doesn't seem to work for me at all, I can see the restrictions being applied to the component but it is still not filtering the results |
Do you have any workaround to filter the results by country ? |
Anyone found a solution to this yet? |
:component-restrictions='{country: ["AT", "de", "ch", "it"]}'
:libraries="['geometry', 'places', '&language=at®ion=AT']" Doing this will not restrict to these country's. I add a |
🥳 Using the suggested solution by @CSalih worked great for me. I needed to restrict to addresses in Australia, with the following:
|
I don't see anywhere in your docs on how to filter results by country. Do you not have this set up as a prop?
The text was updated successfully, but these errors were encountered: