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

All types autocomplete not working? #77

Open
santanubasu opened this issue Apr 23, 2018 · 4 comments · May be fixed by #150
Open

All types autocomplete not working? #77

santanubasu opened this issue Apr 23, 2018 · 4 comments · May be fixed by #150

Comments

@santanubasu
Copy link

I may be using the types property incorrectly, but here is what I see:

  • Don't supply the prop, get the default address type
  • Supply the prop, get the specified type back

However, in the google places API, it states (regarding autocomplete result types):

"If nothing is specified, all types are returned."

How do I tell the autocomplete element to not pass any type parameter to the API so I can get back all results?

@ghost
Copy link

ghost commented May 14, 2018

I am interested in this as well, 21 days and no response?

@santanubasu - Did you ever find the answer to this question?

@santanubasu
Copy link
Author

This isn't a solution exactly, but I observed that if the geocode type is specified, it has the effect of returning both establishments and addresses, which is what I was after. This may or may not give you what you need.

@Bounty31
Copy link

I also have this issue... you should be able to provide an array not just a string. @santanubasu your solution doesn't work if I need the default behavior which is to return geocode and establishment results (see: https://developers.google.com/places/supported_types#table3).

Is this component still under development?

@santanubasu
Copy link
Author

santanubasu commented May 22, 2018 via email

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

Successfully merging a pull request may close this issue.

2 participants