Skip to content
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

display only countries. #69

Open
nidzovito opened this issue Aug 13, 2015 · 2 comments
Open

display only countries. #69

nidzovito opened this issue Aug 13, 2015 · 2 comments

Comments

@nidzovito
Copy link

I would like to display only countries in the dropdown, but I can't find the option in the parameter.
How can i do that?
I also can't find the code place to filter the result.

@cmddavid
Copy link

Google does not offer this service. So it's not in the autocomplete. It is possible with a workaround though. But it would require to iterate through all returned objects to find out which objects have the type not set to country, and then remove those.

If implemented wrong this could give odd behaviour, so be careful :)

@pimpin
Copy link

pimpin commented Oct 27, 2015

You should extend your autocompleteService.getPlacePrediction arg with the opts build previously to get same results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants