<?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: How to calculate the travel time in the Network Analysis？ in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-calculate-the-travel-time-in-the-network/m-p/309567#M28442</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This sample may help as well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/routetask_directions.html" title="https://developers.arcgis.com/javascript/jssamples/routetask_directions.html"&gt;Get driving directions | ArcGIS API for JavaScript&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the money line for travel time:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14531493909819306 jive_text_macro" data-renderedposition="176_8_912_16" jivemacro_uid="_14531493909819306"&gt;&lt;P&gt;var totalLength = number.format(directions.totalTime);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, the sample isn't actually doing anything with it, but it does return (verified by console.log).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jan 2016 20:31:34 GMT</pubDate>
    <dc:creator>ChrisSmith7</dc:creator>
    <dc:date>2016-01-18T20:31:34Z</dc:date>
    <item>
      <title>How to calculate the travel time in the Network Analysis？</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-calculate-the-travel-time-in-the-network/m-p/309565#M28440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;I am new for ArcGIS JS development. I want to get the travel time between 2 or more stops using ArcGIS API for JS, but I don't know which API I could use. &lt;/P&gt;&lt;P&gt;I have the network server pulished by myself and it has the fields of road length and speed limit. I just want to get the travel time between 2 places.&lt;/P&gt;&lt;P&gt;Appreciate for any suggestion.&lt;/P&gt;&lt;P style="text-align: right;"&gt;Lin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 03:42:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-calculate-the-travel-time-in-the-network/m-p/309565#M28440</guid>
      <dc:creator>LinQing</dc:creator>
      <dc:date>2016-01-18T03:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the travel time in the Network Analysis？</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-calculate-the-travel-time-in-the-network/m-p/309566#M28441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's an Esri sample for travel time:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/analysis_connectoriginstodestinations.html" title="https://developers.arcgis.com/javascript/jssamples/analysis_connectoriginstodestinations.html"&gt;Analysis - Calculate travel time and distance | ArcGIS API for JavaScript&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This particular sample uses &lt;SPAN style="color: #000000; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; background-color: #fefefe;"&gt;ConnectOriginsToDestinations ,&lt;/SPAN&gt; which is "...&lt;SPAN style="color: #000000; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; background-color: #fefefe;"&gt;part of the Analysis service in ArcGIS Online.&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/rest/analysis/api-reference/getting-started.htm" style="color: #00629b; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif;" target="_blank"&gt;Analysis&lt;/A&gt;&lt;SPAN style="color: #000000; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; background-color: #fefefe;"&gt;is a subscription-based service available through ArcGIS Online"&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mentioned you have the network service available; I would have a look at &lt;A href="https://developers.arcgis.com/javascript/jsapi/routetask-amd.html" title="https://developers.arcgis.com/javascript/jsapi/routetask-amd.html"&gt;RouteTask | API Reference | ArcGIS API for JavaScript&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, you will need ArcGIS Server 9.3.1+ You cannot use an earlier version of ArcGIS Server if you wish to use RouteTask in the JSAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a sample:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/routetask_find_route.html" title="https://developers.arcgis.com/javascript/jssamples/routetask_find_route.html"&gt;Find a route | ArcGIS API for JavaScript&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 20:27:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-calculate-the-travel-time-in-the-network/m-p/309566#M28441</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2016-01-18T20:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the travel time in the Network Analysis？</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-calculate-the-travel-time-in-the-network/m-p/309567#M28442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This sample may help as well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/routetask_directions.html" title="https://developers.arcgis.com/javascript/jssamples/routetask_directions.html"&gt;Get driving directions | ArcGIS API for JavaScript&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the money line for travel time:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14531493909819306 jive_text_macro" data-renderedposition="176_8_912_16" jivemacro_uid="_14531493909819306"&gt;&lt;P&gt;var totalLength = number.format(directions.totalTime);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, the sample isn't actually doing anything with it, but it does return (verified by console.log).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 20:31:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-calculate-the-travel-time-in-the-network/m-p/309567#M28442</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2016-01-18T20:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the travel time in the Network Analysis？</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-calculate-the-travel-time-in-the-network/m-p/309568#M28443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your advice! I will try those methods and my &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;ArcGIS Server is 10.2.^.^&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 02:31:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-calculate-the-travel-time-in-the-network/m-p/309568#M28443</guid>
      <dc:creator>LinQing</dc:creator>
      <dc:date>2016-01-19T02:31:43Z</dc:date>
    </item>
  </channel>
</rss>

