vue-google-autocomplete
vue-google-autocomplete copied to clipboard
All types autocomplete not working?
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?
I am interested in this as well, 21 days and no response?
@santanubasu - Did you ever find the answer to this question?
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.
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?
That's a good point, my "solution" only really worked for my specific use case I think, but an array for sure is necessary in the general case, subject to the limitation that google's docs seem to indicate.
On Tue, May 22, 2018 at 2:55 AM, Bounty31 [email protected] wrote:
I also have this issue... you should be able to provide an array not just a string. @santanubasu https://github.com/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?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/olefirenko/vue-google-autocomplete/issues/77#issuecomment-390933227, or mute the thread https://github.com/notifications/unsubscribe-auth/ABrY3sdgDr0E0l3lydLllGd7NAFkuY8Qks5t0-CQgaJpZM4Tgxhy .