AnsweredAssumed Answered

locator - suggestionLocations - a working example?

Question asked by mravichandran on Mar 16, 2017
Latest reply on Mar 20, 2017 by mravichandran

dear Readers,

 

thanks a lot for taking the time to read my question:

 

https://developers.arcgis.com/javascript/3/jsapi/locator-amd.html#suggestlocations - has a simple example; I have made the changes as below:

 

 var params = {
                text: "addressInput",
                categoies: ["place", "address"],
                location: map.extent.getCenter().normalize(),
                distance: 1000
            };

            geocodeLocator.suggestLocations(params).then(function (suggestions) {
                console.log(suggestions);  // to start with.
            });

 

I have break points in this code (Chrome f12) and it is not hitting them. I am using esri/task/locator.

 

the address search is working fine - a single address search with NOresult storage on a database is working fine.  V r using the geocode engine belonging to ESRI.

 

the example url is not indicating it - do I need to capture dojo text entry into the addressInput text box - on. text change?

 

any information will be greatly appreciated.

 

regards

ravi.

Outcomes