# Google Autocomplete Places API

**URL:** <https://forum.wixstudio.com/t/google-autocomplete-places-api/35604>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [May 2, 2018, 11:51am UTC](https://forum.wixstudio.com/t/google-autocomplete-places-api/35604 "2018-05-02T11:51:26Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinay-kumar-1](https://avatars.discourse-cdn.com/v4/letter/v/e9bcb4/32.png) [@vinay-kumar-1](https://forum.wixstudio.com/u/vinay-kumar-1)\
**Post date:** [May 2, 2018, 11:51am UTC](https://forum.wixstudio.com/t/google-autocomplete-places-api/35604/1 "2018-05-02T11:51:26Z")

</div>

I want to add Google Autocomplete Places feature on my form. I saw the tutorial [https://www.wix.com/code/home/forum/advanced-tips-tricks/how-to-use-google-maps-services-in-wix-code](https://www.wix.com/code/home/forum/advanced-tips-tricks/how-to-use-google-maps-services-in-wix-code)  
But it works on repeater, I do not have any repeater in my form. Can anyone suggest how to achieve this. I have input fields for Address City State and Zipcode in my form.

---

<div class="post-metadata">

**Author:** ![andreas-kviby](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/andreas-kviby/32/790_2.png) [@andreas-kviby](https://forum.wixstudio.com/u/andreas-kviby)\
**Post date:** [May 2, 2018, 12:16pm UTC](https://forum.wixstudio.com/t/google-autocomplete-places-api/35604/2 "2018-05-02T12:16:36Z")

</div>

What is that you want to accomplish? Do you want autocomplete as in the post you refer to or do you want to loop it up in another way?

---

<div class="post-metadata">

**Author:** ![yisrael-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/yisrael-wix/32/1107_2.png) [@yisrael-wix](https://forum.wixstudio.com/u/yisrael-wix)\
**Post date:** [May 2, 2018, 12:34pm UTC](https://forum.wixstudio.com/t/google-autocomplete-places-api/35604/3 "2018-05-02T12:34:38Z")

</div>

Hi Vinay,

There are two repeaters in the example.

One is for the autocomplete/suggestions. Without it the display of the autocomplete won’t work.

The other repeater is is only used as an example of how to display the details of the location. If you need, just save the information to the fields that you want.

Yisrael

---

<div class="post-metadata">

**Author:** ![vinay-kumar-1](https://avatars.discourse-cdn.com/v4/letter/v/e9bcb4/32.png) [@vinay-kumar-1](https://forum.wixstudio.com/u/vinay-kumar-1)\
**Post date:** [May 2, 2018, 12:38pm UTC](https://forum.wixstudio.com/t/google-autocomplete-places-api/35604/4 "2018-05-02T12:38:57Z")

</div>

I have a form with input fields for Address City State and Zipcode. I want if anyone click input address google autocomplete get opens up and city state and zipcode get fills automatically from selected place.  
I do not have any repeater in my form. Can’t it work without repeater and just on input focus or change?

---

<div class="post-metadata">

**Author:** ![yisrael-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/yisrael-wix/32/1107_2.png) [@yisrael-wix](https://forum.wixstudio.com/u/yisrael-wix)\
**Post date:** [May 2, 2018, 12:47pm UTC](https://forum.wixstudio.com/t/google-autocomplete-places-api/35604/5 "2018-05-02T12:47:32Z")

</div>

The example provides suggestions to a partially typed location. Then when selected from the dropdown list (repeater) it is able to fill in the required fields. It seems like your usage case is different. You can perhaps use parts of the example to suit your needs.

Yisrael

---

<div class="post-metadata">

**Author:** ![eyalc](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/eyalc/32/669_2.png) [@eyalc](https://forum.wixstudio.com/u/eyalc)\
**Post date:** [December 8, 2019, 6:41am UTC](https://forum.wixstudio.com/t/google-autocomplete-places-api/35604/6 "2019-12-08T06:41:17Z")

</div>

For anybody who’s interested in this feature: the **Address Input** Editor Element [has been released](https://www.wix.com/corvid/forum/corvid-tips-and-updates/new-feature-address-input) .

---

<div class="post-metadata">

**Author:** ![maritza](https://avatars.discourse-cdn.com/v4/letter/m/97f17d/32.png) [@maritza](https://forum.wixstudio.com/u/maritza)\
**Post date:** [April 22, 2020, 8:15pm UTC](https://forum.wixstudio.com/t/google-autocomplete-places-api/35604/7 "2020-04-22T20:15:15Z")

</div>

Hi, Ive been trying to use the address input element, I manage to get the autofill options with the google api connected, but when I click on them it does not populate the field. Any suggestions?

---

<div class="post-metadata">

**Author:** ![eyalc](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/eyalc/32/669_2.png) [@eyalc](https://forum.wixstudio.com/u/eyalc)\
**Post date:** [April 22, 2020, 8:40pm UTC](https://forum.wixstudio.com/t/google-autocomplete-places-api/35604/8 "2020-04-22T20:40:01Z")

</div>

Hi @maritza ,  
If I had to guess the cause of the problem from what you’re describing, it would be that you have the Places API enabled, but not the Geocoding API.

This is because only the Places API is used to populate the list of suggestions, but when you select a specific suggestion the Geocoding API is also used to obtain further information about the address (such as its lat/lon coordinates).

Please try to follow the instructions in [this article](https://support.wix.com/en/article/generating-a-google-maps-api-key-for-the-address-input-element) and let me know if once you enable the Geocoding API the issue goes away.

HTH

---

<div class="post-metadata">

**Author:** ![mailtomeskr](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@mailtomeskr](https://forum.wixstudio.com/u/mailtomeskr)\
**Post date:** [April 19, 2021, 12:01pm UTC](https://forum.wixstudio.com/t/google-autocomplete-places-api/35604/9 "2021-04-19T12:01:46Z")

</div>

The autocomplete shows the adress I’m looking for, but after selecting my option, it only displays part of the address ine field and also saves just that partial address in my collection. Does anyone else face this or have a solution for this?

---

<div class="post-metadata">

**Author:** ![crumbsgranolaindia](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/crumbsgranolaindia/32/8089_2.png) [@crumbsgranolaindia](https://forum.wixstudio.com/u/crumbsgranolaindia)\
**Post date:** [March 22, 2022, 8:28pm UTC](https://forum.wixstudio.com/t/google-autocomplete-places-api/35604/10 "2022-03-22T20:28:32Z")

</div>

I have the same problem as [mailtomeskr](https://www.wix.com/velo/profile/mailtomeskr/profile) . Someone please help. The customer care at wix is unable to help me out with this

---

<div class="post-metadata">

**Author:** ![marlowe-shaeffer](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/marlowe-shaeffer/32/669_2.png) [@marlowe-shaeffer](https://forum.wixstudio.com/u/marlowe-shaeffer)\
**Post date:** [March 22, 2022, 9:07pm UTC](https://forum.wixstudio.com/t/google-autocomplete-places-api/35604/11 "2022-03-22T21:07:20Z")

</div>

@crumbsgranolaindia Please report this bug following the process [here](https://www.wix.com/velo/forum/coding-with-velo/how-to-report-a-bug-1) . The issue will be sent to one of our Velo product support specialists to review.
