<?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 Find the travelModeName of Directions widget arcgis api 3.38 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-the-travelmodename-of-directions-widget/m-p/1114444#M75175</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Im working with Directions widget on arcgis api js 3.38...... Actually I can get all the directions details such as (features, stops, sommury, strrings,... and other details) as below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;directionsW.on("directions-finish", changeHandler);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;function changeHandler(data) {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;console.log("done", data.result);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;but the question is how can I get the&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;U&gt;&lt;EM&gt;travelModeName&amp;nbsp;&lt;/EM&gt;&lt;/U&gt;paramter as I need to recuperate it from the directions details result ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/directions-amd.html#travelmodename" target="_blank"&gt;https://developers.arcgis.com/javascript/3/jsapi/directions-amd.html#travelmodename&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;any idea please ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Nov 2021 11:43:15 GMT</pubDate>
    <dc:creator>benchikh</dc:creator>
    <dc:date>2021-11-05T11:43:15Z</dc:date>
    <item>
      <title>Find the travelModeName of Directions widget arcgis api 3.38</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-the-travelmodename-of-directions-widget/m-p/1114444#M75175</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Im working with Directions widget on arcgis api js 3.38...... Actually I can get all the directions details such as (features, stops, sommury, strrings,... and other details) as below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;directionsW.on("directions-finish", changeHandler);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;function changeHandler(data) {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;console.log("done", data.result);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;but the question is how can I get the&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;U&gt;&lt;EM&gt;travelModeName&amp;nbsp;&lt;/EM&gt;&lt;/U&gt;paramter as I need to recuperate it from the directions details result ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/directions-amd.html#travelmodename" target="_blank"&gt;https://developers.arcgis.com/javascript/3/jsapi/directions-amd.html#travelmodename&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;any idea please ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 11:43:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-the-travelmodename-of-directions-widget/m-p/1114444#M75175</guid>
      <dc:creator>benchikh</dc:creator>
      <dc:date>2021-11-05T11:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Find the travelModeName of Directions widget arcgis api 3.38</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-the-travelmodename-of-directions-widget/m-p/1114495#M75178</link>
      <description>&lt;P&gt;Another great question. It's there in the Route Parameters, just took some digging to find. Try this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;directionsW.on("directions-finish", changeHandler);
function changeHandler(data) {
   console.log("travelMode: ", data.target.routeParams.travelMode.name);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 14:51:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-the-travelmodename-of-directions-widget/m-p/1114495#M75178</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2021-11-05T14:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Find the travelModeName of Directions widget arcgis api 3.38</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-the-travelmodename-of-directions-widget/m-p/1114505#M75180</link>
      <description>&lt;P&gt;Many thanks for your great help !&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 15:20:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-the-travelmodename-of-directions-widget/m-p/1114505#M75180</guid>
      <dc:creator>benchikh</dc:creator>
      <dc:date>2021-11-05T15:20:35Z</dc:date>
    </item>
  </channel>
</rss>

