Hii am using Locator for geocoding as below this.locator = new Locator("http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"); //on(this.locator,"location-to-address-complete", lang.hitch(this,"_reverseGeocodingSuccess")); //on(this.locator,"address-to-locations-complete", lang.hitch(this,"_geocodingSuccess"));
and i have added a click event listener as belowgetAddress : function(/*Point*/ point) { this.locator.locationToAddress(webMercatorUtils.webMercatorToGeographic(point),100, function(address){ alert(address); },function(err){ alert(err); }); },
Problemalways it says time out,But from this example code its working fineLocator sample