Services Plugins FAQs

Google fastest autocomplete plugin - how to get state, country, zipcode from the data

Hi team - I got the plugin. What I am hoping to accomplish is that a person types their address in the address bar that gets autocompleted with country/state and zipcode being autopopulated.

Is there a way I can use the Zeroqode plugin to accomplish that? Thanks

Hello, @arjun. Thanks for reaching out,
Apologies for the late reply.

Since the address parts can not be extracted from the returned address string (cut into the address components), it is impossible to fill the Country/State or Zipcode separately as per your request. This is dictated by the Google Places JS library, which is used in the plugin. I’m afraid, but we can’t influence this. :slightly_frowning_face:

Please let me know if there is anything else you would like to ask.
Regards,

Hey Kate if I use Adr address output for example

image

It provides me a pretty fullsome list data like below. Any chance I can extract any of that? Perhaps using regex?

image

@arjun,
Please accept my sincere apologies for the late reply. :pray:

Yes, it should be possible to extract the address parts from the Adr Address state, using the bubble’s regext function. But you should have some experience in using regex. :thinking:

Also, we will add this point to the list of future plugin updates. Thank you for suggesting it.

Please let me know if you have any more questions.
Have a good day! :slightly_smiling_face: