Services Plugins FAQs

šŸ“ Fastest Google Places Autocomplete - New Plugin from Zeroqode

Hello there @nicedwar, we will check this one request, and I will be back of a matter ASAP.

Thank you,
BR,
Nik.

Hey @nicedwar, regarding the question above, you are able to define some restrictions regarding the location here, but the modifying dropdown isnā€™t possible.

And regarding the message below, I will be back ASAP.

Thank you,
BR,
Nik.

Thanks @Nikita.S

I will see if I can set broad restrictions or something. Could you look into something like disabling ipbias in Google Places, and exposing that to the plugin?:


Also Iā€™d like to report a possible bug. When I select a location from the dropdown by clicking on it, the value of the input doesnā€™t change from what the user originally typed in. So if I type ā€˜sanā€™ and click ā€˜San Diegoā€™, the value stays as ā€˜sanā€™, although the visible text does change to ā€˜San Diegoā€™.
If I type ā€˜sanā€™ and use arrow and Enter keys to make a selection, the inputā€™s value changes properly to reflect the visible text. The dropdown selections seem to highlight in color with the keyboard as well, but gray with the mouse.

Mouse selection keeps old value (same for mobile I believe):

Keyboard gets correct value:

It would be great if this could be fixed, as Iā€™d like to try clearing the userā€™s location selection if the value of the input changes, but I canā€™t do this currently.

Hello @nicedwar

Sorry for late response here, let me jump in here.

Please give us some time to check this out, weā€™ll be back to you with an update on the matter asap.
Thanks for understanding. :pray:

Regads,
Dumitru.

Hello @nicedwar

Sorry for late reply, weā€™ve working things out with the plugin and we pushed an update regarding the bug youā€™ve encountered with the input and state of the input youā€™ve been getting.

As far as IPBias goes, Iā€™m afraid we can not implement this and itā€™s an out of scope feature which will require a lot more to rethink in plugin right now.
Thanks for understanding. :pray:

Please upgrade to latest version of plugin, place the element on page, follow the instructions setup of the demo, refresh the page and give it a try.

Cheers.

Hello @Dumitru. Thanks for the update. I can confirm that the inputā€™s value seems to be properly updating now. Do you know if there is anyway do directly set or clear the autocomplete elementā€™s data when the inputā€™s value changes? I was hoping to implement this, but I donā€™t see any set or clear functionality exposed. Is it all handled internally by clicking the dropdown?

I see that the new 1.12 update returns ā€œentire selected addressā€. Is this necessary to properly set the inputā€™s value? Previously, the input was filled in with a much nicer combination of Place Name and Address. Can this info be set to the inputā€™s value? Just the address can be ugly/unclear sometimes. Iā€™ll attach examples:

1.12

1.11

From the documentation I linked before, I am guessing that there might be ways to use the Places APIā€™s address_components[] to get the best output.

Hello @nicedwar

Sorry for late reply here. :pray:

We checked the requests, and fixed the display of the names in the input alongside the address and added new action for Autocomplete Element, to Reset the Element.
Please upgrade to latest version of plugin, refresh the app, and give it a try.
Thanks.

Regards,
Dumitru

@Dumitru

Apologies from me as well. I have to nitpick one more thing. To be clear, 1.11 was outputting a smarter combination of Place Name and Full Address. Example:
If the Place was Moscow,
and the Address was Moscow, Russia,
making a selection would combine them intelligently, and set the input to Moscow, Russia.

1.13 is now just combining the Place and Address together, as Moscow, Moscow, Russia.
This isnā€™t a big deal for my Joshua Tree + California example, but looks funny when the address contains the name.

Is it possible to keep the smart combination from 1.11, with the input value fix?


I tested the reset action, and it seems to work. I will be adding a check to see if the inputā€™s value contains the autocompleteā€™s Place Name, and resetting the autocomplete if false.

Hello @nicedwar

We added exclusion for cases which have Name + Address which repeat itself like the example offered by you, where the Name is contained in the Address as well: Moscow, Moscow, Russia .

Please upgrade to latest version of plugin, refresh the app and give it a try.
Thanks.

Thanks @Dumitru. The addresses seem to come through a lot cleaner and with greater detail now!

I am having a hard time getting the autocomplete to properly reset when the input is empty. That type of workflow doesnā€™t seem to work. But we might be getting into the particulars of how Bubble works vs. the plugin.

1 Like

Hello,

Was the ability to hold the results in a state taken away from this plugin?

Thanks,
Jonathan

Hello @jonathan

Iā€™m afraid not sure what are you talking about. Could you offer more details on the issue youā€™ve encountered?
Thanks.
:pray:

Hi @Dumitru yes happy to explain and sorry for not being more clearly. So I remember in this plugin there used to be a dropdown in the main bubble editor that said ā€œshow results inā€ and then the options were input and state. If you chose that you wanted the options shown in a state than what you could do is take the results that would normally appear right below the input when you started typing a place and then show them in a custom ui of your choosing in a repeating group for example. This functionality looks like it was put into the plugin in version 1.2.0 and removed after - the description of the functionality in the plugin upgrade panel in bubble for 1.2.0 was ā€œPredictions can be disabled from input and shown in stateā€

Thanks @jonathan for details.

I see now. Yes indeed, it was removed in order to simplify the plugin use case.
Thanks for understanding.

Regards,
Dumitru.

Hi Dumitru,

Ok understood, itā€™s not a huge deal but it would definitely be nice to create a custom UI for searching geographic places and having this be back in and Iā€™m sure thereā€™s a lot of other people who would want that as well. Any chance this can be put back in?

If it canā€™t be put back in, can you lead me towards the google documentation that would allow me to configure this on my own using API connector?

Thanks,
Jonathan

Hello @jonathan

Sorry for late response.

Iā€™m afraid itā€™s not going to be put this propriety any time soon. Weā€™ll take a look at it if can be feasibly implemented, but not right away.
Sorry. :pray:

As for guidance, regarding implementing it by API connector, not really sure if it is a API request for the matter. I believe it was a custom solution implemented.
More about Places API, see it here: https://developers.google.com/maps/documentation/javascript/places#top_of_page

Hope this helps :pray:

Regards,
Dumitru.

Ok I understand, thanks!

Hi!
Is it possible to change the type of Places image field to be ā€œimageā€ instead of text?

Thanks.

@levon ? Any answer on this?

Hello @ff591377

Sorry for late response.
Iā€™m afraid it is not possible. What we are getting from Google when requesting details is not an image file container, but rather a photo_reference string which contains the photo with respective parameters.
More can be found here: https://developers.google.com/places/web-service/photos

Thanks for understanding. :pray:

Regards,
Dumitru.