AnsweredAssumed Answered

Directions widget

Question asked by r_bowman on Jun 19, 2014
Latest reply on Oct 23, 2014 by r_bowman
I am attempting to use this widget with a local GeocoderServer. I can create the Geocoder and specify the URL, setting arcgisGeocoder to false, and the Geocoder works fine.

I can also set the routeTaskUrl in the Directions constructor to the local NA service and it is used. However trying

    var geocoderList = [];
    geocoderList.push(geocoder);

    var directions = new Directions({
     map : map,
     geocoders : geocoderList,
                                        .....

still results in a call to

geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer

While the World GeocodeServer does return a result, the values are not compatible with the local NA server. Is there any way to override the Directions widget geocoder?

Outcomes