<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Route result time and distance with units in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-result-time-and-distance-with-units/m-p/475376#M44122</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Time is in milliseconds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jul 2019 14:23:32 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2019-07-08T14:23:32Z</dc:date>
    <item>
      <title>Route result time and distance with units</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-result-time-and-distance-with-units/m-p/475370#M44116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I am using routeresult to get the result of my route. I am getting the length for each segment as well as time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;array.forEach(routeResult.directions.features, function (feature) {&lt;BR /&gt; var direction = feature.attributes;&lt;BR /&gt; directions.push(direction);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #881391;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #212121;"&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #212121;"&gt;&lt;SPAN class=""&gt;{&lt;SPAN class="" style="color: #565656;"&gt;length&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;0.01642324482308207&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #565656;"&gt;time&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;0.15858421215735188&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #565656;"&gt;text&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"Go northwest"&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #565656;"&gt;ETA&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;-2209161600000&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #565656;"&gt;arriveTimeUTC&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;-2209161600000&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;…&lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #212121;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #212121;"&gt;Can I get something like&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #212121;"&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/452421_pastedImage_1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #212121;"&gt;The unit as been set as esriMiles in my code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #212121;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #212121;"&gt;Any suggestion will be really helpful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #212121;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #212121;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #212121;"&gt;Kumar&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2019 16:39:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-result-time-and-distance-with-units/m-p/475370#M44116</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2019-07-05T16:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Route result time and distance with units</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-result-time-and-distance-with-units/m-p/475371#M44117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Why are you setting the direction length units to esriMiles when you are wanting the output to be in Meters?...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2019 12:29:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-result-time-and-distance-with-units/m-p/475371#M44117</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-07-08T12:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Route result time and distance with units</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-result-time-and-distance-with-units/m-p/475372#M44118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&amp;nbsp;The image is just for reference.I am getting miles for distance but I am not sure of time unit as I have not set any time unit there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;&amp;nbsp;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2019 13:17:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-result-time-and-distance-with-units/m-p/475372#M44118</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2019-07-08T13:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Route result time and distance with units</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-result-time-and-distance-with-units/m-p/475373#M44119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;In your output you have time and ETA...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; background-color: #ffffff;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="" style="color: #565656; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;length&lt;/SPAN&gt;&lt;SPAN style="color: #212121; background-color: #ffffff;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;0.01642324482308207&lt;/SPAN&gt;&lt;SPAN style="color: #212121; background-color: #ffffff;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #565656; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;time&lt;/SPAN&gt;&lt;SPAN style="color: #212121; background-color: #ffffff;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;0.15858421215735188&lt;/SPAN&gt;&lt;SPAN style="color: #212121; background-color: #ffffff;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #565656; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;text&lt;/SPAN&gt;&lt;SPAN style="color: #212121; background-color: #ffffff;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;"Go northwest"&lt;/SPAN&gt;&lt;SPAN style="color: #212121; background-color: #ffffff;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #565656; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;ETA&lt;/SPAN&gt;&lt;SPAN style="color: #212121; background-color: #ffffff;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;-2209161600000&lt;/SPAN&gt;&lt;SPAN style="color: #212121; background-color: #ffffff;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #565656; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;arriveTimeUTC&lt;/SPAN&gt;&lt;SPAN style="color: #212121; background-color: #ffffff;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;-2209161600000&lt;/SPAN&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;,&amp;nbsp;…&lt;/SPAN&gt;&lt;SPAN style="color: #212121; background-color: #ffffff;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2019 13:55:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-result-time-and-distance-with-units/m-p/475373#M44119</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-07-08T13:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Route result time and distance with units</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-result-time-and-distance-with-units/m-p/475374#M44120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to know is the units of&amp;nbsp;&lt;SPAN class="" style="color: #565656; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;length&lt;/SPAN&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;0.01642324482308207(which I suppose is Miles) and unit for&amp;nbsp;&lt;SPAN class="" style="color: #565656; border: 0px;"&gt;time&lt;/SPAN&gt;&lt;SPAN style="color: #212121; border: 0px;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #212121; border: 0px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px;"&gt;0.15858421215735188?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #1c00cf; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN class="" style="border: 0px;"&gt;I am not able to get the unit of time. Is it minute/sec/hr?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #1c00cf; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN class="" style="border: 0px;"&gt;Thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #1c00cf; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN class="" style="border: 0px;"&gt;Kumar&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2019 14:17:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-result-time-and-distance-with-units/m-p/475374#M44120</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2019-07-08T14:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Route result time and distance with units</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-result-time-and-distance-with-units/m-p/475375#M44121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Yes.&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;What I want to know is the units of&amp;nbsp;&lt;SPAN class="" style="color: #565656; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;length&lt;/SPAN&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;0.01642324482308207(which I suppose is Miles) and unit for&amp;nbsp;&lt;SPAN class="" style="color: #565656; border: 0px; font-weight: inherit; font-size: 14px;"&gt;time&lt;/SPAN&gt;&lt;SPAN style="color: #212121; border: 0px; font-weight: inherit; font-size: 14px;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #212121; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;0.15858421215735188?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN class="" style="color: #1c00cf; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;I am not able to get the unit of time. Is it minute/sec/hr?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN class="" style="color: #1c00cf; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;Thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN class="" style="color: #1c00cf; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;Kumar&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2019 14:18:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-result-time-and-distance-with-units/m-p/475375#M44121</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2019-07-08T14:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Route result time and distance with units</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-result-time-and-distance-with-units/m-p/475376#M44122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Time is in milliseconds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2019 14:23:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-result-time-and-distance-with-units/m-p/475376#M44122</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-07-08T14:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Route result time and distance with units</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-result-time-and-distance-with-units/m-p/475377#M44123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Robert. It resolved the issue. But is there any way where we can get the unit of time? Because at the total time its giving me 22.05 which i suppose is minutes&lt;/P&gt;&lt;P&gt;number.format(routeResult.directions.totalTime);&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2019 14:57:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-result-time-and-distance-with-units/m-p/475377#M44123</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2019-07-08T14:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Route result time and distance with units</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-result-time-and-distance-with-units/m-p/475378#M44124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I mentioned the unit will be milliseconds. So you just need to format/convert the milliseconds to what ever unit of time you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2019 15:39:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-result-time-and-distance-with-units/m-p/475378#M44124</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-07-08T15:39:14Z</dc:date>
    </item>
  </channel>
</rss>

