good morning. i am trying my hand at the js maps sdk. i was able to create a simple app using this tutorial: https://developers.arcgis.com/javascript/latest/tutorials/find-a-route-and-directions/. My app works to create a route from 2 clicks, with turn-by-turn directions and mileage for each turn.
BUT i would like to display the TOTAL MILEAGE from Location1 to Location2. Is there a way to add that in the setup from this tutorial?
thanks in advance for any guidance.