Change the Routing GeoCoder service of Directions widget

10-27-2021 04:28 AM
New Contributor III

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,
        }, "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.

0 Kudos
2 Replies
Frequent Contributor II

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.


New Contributor III

I have already checked the links but better is there is a sample that would be mucg appreciated

0 Kudos