How can I change the Directions GeoCoder Service to let him point on my own Geocoder service
I have declared My directions as below, with the routeTaskURL
var directionsW = new Directions({ map: map, routeTaskUrl: "https://xxxxxxxxx/arcgis/rest/services/CALCUL_ITINERAIRE/NAServer/Route" }, "dir");
and now I want to point on my own GeoCoder Service ? I know that I can do it with searchOptions's Parameter, but could you please let me know with a sample of code that would be very helpful.
You can update the searchProperties of the Directions widget.
Like the Search widget, you can turn off the default Search source and add your own.
You can look at the search sample for more details on adding a new source.
https://developers.arcgis.com/javascript/latest/sample-code/widgets-search-multiplesource/
I have already checked the links but better is there is a sample that would be mucg appreciated