I was going through the routing example Simple Routing which works on map click event. I am bale to replicate the same but instead of click I want the routing to take place using 2 different x,y.
Is there a reference or example for doing this with at least 2 hard coded points?