I have created a address locator that works great in the geocoder, but I need to apply it to the directions widget as well. Tried for a few hours... and I am now stuck.
var myGeocoders = [{
// secure service
url: locatorUrl,
singleLineFieldName: "SingleLine",
name: "Enter Name"
}];
geocoder = new Geocoder({
map: map,
autoComplete: true,
arcgisGeocoder: false,
geocoders: myGeocoders,
value: ""
},"search1");
geocoder.startup();
var directions = new Directions({
map: map
},"dir");
directions.startup();
I got a little hung up in the documentation and I'm not 100% where to go next.
Any help would be appreciated.