# Google API address results are not saving to the geographic location field

**URL:** <https://forum.bubble.io/t/google-api-address-results-are-not-saving-to-the-geographic-location-field/308649>\
**Category:** Need help\
**Created:** [February 21, 2024, 9:14pm UTC](https://forum.bubble.io/t/google-api-address-results-are-not-saving-to-the-geographic-location-field/308649 "2024-02-21T21:14:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![timothymoore1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/timothymoore1/32/206037_2.png) [@timothymoore1](https://forum.bubble.io/u/timothymoore1)\
**Post date:** [February 21, 2024, 9:14pm UTC](https://forum.bubble.io/t/google-api-address-results-are-not-saving-to-the-geographic-location-field/308649/1 "2024-02-21T21:14:22Z")

</div>

**Problem** : Most addresses in China (provided by the Google API) do not store/persist in the the geolocation filed.

**Scenario** : My app has a bubble-delivered Map element that allows users to set their location. Upon tapping the back button, the workflow updates the user’s location (a geographic location field type) with the Map center’s address.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/7/4/74bd4bc6086e36cd1d639c31e5bb5ee19b0553ec.png)

**Example** :  
Below is the default location for a user.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/e/9/e929757518932dc00e13389a797557b51c5ae169.jpeg)

When I change the map center to a different address, such as **Chang Ning Qu** , you can see that the google API is returning the address: **China, Shang Hai Shi, Chang Ning Qu, 愚园路1155-1号 邮政编码: 200031**

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/0/2/028995b0119f28e1e35e7c4b59d5c29f3ed6f351.png)

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/b/4/b4897a6d3871bd2fa5efadd10f6dbbb68d2784e3.png)

…but the problem is that the app never writes the address to the database. However, if I copy the same address and manually copy it into the database, the data will persist.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/d/b/db8c1a8c05368fc1ae5ddf4e1b2b7e136791b1f4.png)

As a sanity check, I have the user field “Location” configured as a geographic address.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/5/b/5b2d503763c3df5834e007ba92aa584cb254dfa2.png)

---

<div class="post-metadata">

**Author:** ![timothymoore1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/timothymoore1/32/206037_2.png) [@timothymoore1](https://forum.bubble.io/u/timothymoore1)\
**Post date:** [February 21, 2024, 9:22pm UTC](https://forum.bubble.io/t/google-api-address-results-are-not-saving-to-the-geographic-location-field/308649/2 "2024-02-21T21:22:21Z")

</div>

As an additional sanity check, I’ve confirmed that access to location is enabled in all scenarios.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/8/0/8097b2aeaad50f8faab7232a1b6b5997ca44806d.jpeg)

---

<div class="post-metadata">

**Author:** ![timothymoore1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/timothymoore1/32/206037_2.png) [@timothymoore1](https://forum.bubble.io/u/timothymoore1)\
**Post date:** [February 21, 2024, 10:19pm UTC](https://forum.bubble.io/t/google-api-address-results-are-not-saving-to-the-geographic-location-field/308649/3 "2024-02-21T22:19:48Z")

</div>

RESOLVED: ultimately, the issue was caused by the Google Developer Cloud configuration on my API setup. Specifically, the “Application Restriction” was set to “Websites,” which was probably not set up properly. By removing all restrictions, the app was able to save the address to the database.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/e/f/ef8f3989c4682559829853f41eec262844d8c08b.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [May 1, 2024, 9:14pm UTC](https://forum.bubble.io/t/google-api-address-results-are-not-saving-to-the-geographic-location-field/308649/4 "2024-05-01T21:14:38Z")

</div>

This topic was automatically closed after 70 days. New replies are no longer allowed.
