sarafat

Directions - "totalLength" units of measure?

Discussion created by sarafat on Jun 27, 2014
Latest reply on Jun 27, 2014 by sarafat
Hi all,

Does anyone know where the units-of-measure of the "totalLength" is specified?
This seems to be in meters even though my layer says it in Miles ("directionsLengthUnits": "esriNAUMiles").

json["directions"];
{[
{
"routeId": 1,
"routeName": "Location 1 - Location 2",
"hasM": true,
"summary": {
"totalLength": 5221.98296067188,
"totalTime": 4.41884235246107,
"totalDriveTime": 4.4188423535129635,
"envelope": {
"xmin": -87.652578690999917,
"ymin": 41.878818755651714,
"xmax": -87.6294279999999,
"ymax": 41.903987605323444,
"spatialReference": {
"wkid": 4326,
"latestWkid": 4326
}
}
},

Outcomes