vue-google-autocomplete icon indicating copy to clipboard operation
vue-google-autocomplete copied to clipboard

All types autocomplete not working?

Open santanubasu opened this issue 6 years ago • 4 comments

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?

santanubasu avatar Apr 23 '18 23:04 santanubasu

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

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

ghost avatar May 14 '18 19:05 ghost

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.

santanubasu avatar May 14 '18 19:05 santanubasu

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?

Bounty31 avatar May 22 '18 09:05 Bounty31

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 .

santanubasu avatar May 22 '18 18:05 santanubasu