response undefined when calling google api thru emberjs
问题 I am trying to call google api for getting place suggestions from ember js. like below: this is the service module fetch(){ let url=`https://maps.googleapis.com/maps/api/place/autocomplete/json?input=IL&types=geocode&key=API_KEY` return Ember.RSVP.resolve(Ember.$.ajax(url,{ method: 'GET' })) .then( (response)=>{ console.log("google suggested places:",response); return response; }) *the above url when served with API_KEY and pasted in browser, a JSON response is returned with the suggested