Hi,
Im working with Directions widget under arcgis api 3.38 and want to change the GeoCoder service URL to work with my own GeoCoder service, but it doesnt work , knowing that if I used the esri GeoCoder service it works correctly
var sources = [
{
locator: new Locator("https://xyz/arcgis/rest/services/Adress_Locator/GeocodeServer"),
locationToAddressTemplate: "${City}, ${State}, ${Country}",
singleLineFieldName: "SingleLine",
outFields: ["City"],
localSearchOptions: {
minScale: 300000,
distance: 50000
}
}
];
var options = {
sources: sources
};
//default will point to ArcGIS world routing service
var directions = new Directions({
map: map,
showClearButton: true,
showSegmentPopup: false,
directionsLengthUnits: "esriMiles",
mapClickActive: true,
routeTaskUrl: "https://xyz/arcgis/rest/services/CALCUL_ITINERAIRE/NAServer/Route",
searchOptions: options
}, "dir");
directions.startup();
Could you please help me with that ?