AnsweredAssumed Answered

Locator's addressToLocations() function is receiving unrelated response

Question asked by nisar.dev on Apr 19, 2018
Latest reply on Apr 20, 2018 by rscheitlin

I'm using the following code (v 4.6) to geocode an address:

 

var locatorTask = new Locator({
});
var addressParams = {
   "singleLine": "915 I St, Sacramento, CA"
};
locatorTask.addressToLocations({address:addressParams}).then(function(response){
   console.log(response);
});
This is what I'm getting in the browser console:
Console
What I'm missing here? I should be getting Same URL used in browser address bar

Outcomes