Hi ,
I am using routeresult to get the result of my route. I am getting the length for each segment as well as time.
array.forEach(routeResult.directions.features, function (feature) {
var direction = feature.attributes;
directions.push(direction);
The output is
1: {length: 0.01642324482308207, time: 0.15858421215735188, text: "Go northwest", ETA: -2209161600000, arriveTimeUTC: -2209161600000, …}
Can I get something like

The unit as been set as esriMiles in my code.
Any suggestion will be really helpful.
Thanks
Kumar