AnsweredAssumed Answered

Bulk Reverse Geocoding Not Working

Question asked by behClevest on Jan 24, 2017
Latest reply on Jan 24, 2017 by rscheitlin

Using ArcGIS JavaScript API 3.19 I am trying to do a bulk reverse geocoding like

 

var locator = new Locator("http://dummydomain:6080/arcgis/rest/services/TestGeocoder/GeocodeServer");
map.on("load", function(evt) {
   var points= [{
                 "x": -83.000369,
                 "y": 40.055185
                 }, {
                 "x": -83.000031,
                 "y": 40.051250
                 }];
    locator.outSpatialReference = map.spatialReference;
    var options = {addresses: points};
    locator.locationToAddress(options);
});

 

I am not getting any error on page but the map screen looks empty! can you please let me know what I am doing wrong? and how I can export the points address to console? Thanks

Outcomes