# fetch issue with place autocomplete

**URL:** <https://forums.fusetools.com/t/fetch-issue-with-place-autocomplete/1444>\
**Category:** How-to Discussions\
**Created:** [December 29, 2016, 9:12pm UTC](https://forums.fusetools.com/t/fetch-issue-with-place-autocomplete/1444 "2016-12-29T21:12:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_Kobo](https://avatars.discourse-cdn.com/v4/letter/_/f05b48/32.png) [@\_Kobo](https://forums.fusetools.com/u/_Kobo)\
**Post date:** [December 29, 2016, 9:12pm UTC](https://forums.fusetools.com/t/fetch-issue-with-place-autocomplete/1444/1 "2016-12-29T21:12:34Z")

</div>

Hi guys , i’m facing a little bug trying to retrieve some place using google api (place autocomplete) and fetch this is what my code looks like.

```auto
function predictionfrom(id, description){
  var self = this;
  this.id = id;
  this.description = Observable(description)
}

function searchPLace(arg){
  var input = "&input=" + arg.value;
  var url = "https://maps.googleapis.com/maps/api/place/autocomplete/json?key=googleKey&language=fr" + input
    fetch(url, {
        method: 'POST'
    }).then(function(results){
      var obj = JSON.parse(results._bodyInit)
        predictions.refreshAll(obj.predictions.map(function(x){
          return new predictionfrom(x.id, x.description)
        })
      )
    })
}

```

When i test it with preview mode , all seems to work well (address and city works well) , but when i export to device i can just only retrieve city , address dont works , some images with the same address in preview mode and export to understand the issue.

![file]([https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/dnutTpS8HAEB-image-1483044525292](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/dnutTpS8HAEB-image-1483044525292). 29 21-46-21.png)

 ![file](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/PQrmgI9r0mrd-image-1483045929008.png)

---

<div class="post-metadata">

**Author:** ![Lorents\_Odin\_Gravas](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/lorents_odin_gravas/32/371_2.png) [@Lorents\_Odin\_Gravas](https://forums.fusetools.com/u/Lorents_Odin_Gravas)\
**Post date:** [December 30, 2016, 12:54pm UTC](https://forums.fusetools.com/t/fetch-issue-with-place-autocomplete/1444/2 "2016-12-30T12:54:01Z")

</div>

Hi,

Thanks for reporting this issue. If you can upload a complete project demonstrating the problem [here](https://dropbox.com/request/Rx1QN3QluvxAJiyGJqrh) it would help us in investigating this issue.

---

<div class="post-metadata">

**Author:** ![\_Kobo](https://avatars.discourse-cdn.com/v4/letter/_/f05b48/32.png) [@\_Kobo](https://forums.fusetools.com/u/_Kobo)\
**Post date:** [January 4, 2017, 12:46pm UTC](https://forums.fusetools.com/t/fetch-issue-with-place-autocomplete/1444/3 "2017-01-04T12:46:57Z")

</div>

Sorry for the delay , i just sent the project.  
regards

---

<div class="post-metadata">

**Author:** ![WilfredR](https://avatars.discourse-cdn.com/v4/letter/w/a9adbd/32.png) [@WilfredR](https://forums.fusetools.com/u/WilfredR)\
**Post date:** [April 14, 2017, 6:55am UTC](https://forums.fusetools.com/t/fetch-issue-with-place-autocomplete/1444/4 "2017-04-14T06:55:18Z")

</div>

Hi Kobo,

Did you get it to work? Looking to do the same thing.

---

<div class="post-metadata">

**Author:** ![\_Kobo](https://avatars.discourse-cdn.com/v4/letter/_/f05b48/32.png) [@\_Kobo](https://forums.fusetools.com/u/_Kobo)\
**Post date:** [April 14, 2017, 7:26am UTC](https://forums.fusetools.com/t/fetch-issue-with-place-autocomplete/1444/5 "2017-04-14T07:26:24Z")

</div>

didnt get this working yet.  
Searching for city works on both preview and device , but full address only works on preview , not on device.

---

<div class="post-metadata">

**Author:** ![WilfredR](https://avatars.discourse-cdn.com/v4/letter/w/a9adbd/32.png) [@WilfredR](https://forums.fusetools.com/u/WilfredR)\
**Post date:** [April 14, 2017, 9:19am UTC](https://forums.fusetools.com/t/fetch-issue-with-place-autocomplete/1444/6 "2017-04-14T09:19:19Z")

</div>

Thanks for the update. How does it react when previewing in the iOS / Android Simulator (e.g. not on the device)? Thx.
