<?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 Route paramter is not effecting in Direction widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-paramter-is-not-effecting-in-direction/m-p/538026#M50128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I trying to create a demo with Direction widget and Javascript api 3.17.when i try to modify any routing parameter it did not effect.i am trying to get the route by setting the route parameter &amp;nbsp;returnRoutes=true but direction request the solve with returnRoutes=false.i also tested with startTime parameter but its also not working.&lt;/P&gt;&lt;P&gt;could you please help me in this regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code snippet is following&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;var s_params = new RouteParameters();&lt;/P&gt;&lt;P&gt;s_params.returnRoutes = true;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this.directions = new Directions({&lt;BR /&gt; map: me.map,&lt;BR /&gt; routeTaskUrl: url,&lt;BR /&gt; routeSymbol: sym,&lt;BR /&gt; directionsLengthUnits: 'esriKilometers',&lt;BR /&gt; routeParams:&lt;SPAN&gt;s_params&lt;/SPAN&gt;,&lt;BR /&gt; canModifyStops: false,&lt;BR /&gt; showMilesKilometersOption: false,&lt;BR /&gt; showReturnToStartOption: false,&lt;BR /&gt; showTravelModesOption: false,&lt;BR /&gt; showPrintPage: false,&lt;BR /&gt; returnRoutes:true&lt;BR /&gt; }, 'directions');&lt;BR /&gt;&lt;SPAN&gt;this.&lt;/SPAN&gt;directions.startup();&lt;BR /&gt;&lt;SPAN&gt;this&lt;/SPAN&gt;.directions.on('directions-finish', lang.hitch(me, me._directionsFinished));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i also try to pass the parameter as Json.also try to Update the Routetask property.but still the same issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me in this regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Sep 2016 16:20:00 GMT</pubDate>
    <dc:creator>Haider_AliFaheem</dc:creator>
    <dc:date>2016-09-09T16:20:00Z</dc:date>
    <item>
      <title>Route paramter is not effecting in Direction widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-paramter-is-not-effecting-in-direction/m-p/538026#M50128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I trying to create a demo with Direction widget and Javascript api 3.17.when i try to modify any routing parameter it did not effect.i am trying to get the route by setting the route parameter &amp;nbsp;returnRoutes=true but direction request the solve with returnRoutes=false.i also tested with startTime parameter but its also not working.&lt;/P&gt;&lt;P&gt;could you please help me in this regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code snippet is following&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;var s_params = new RouteParameters();&lt;/P&gt;&lt;P&gt;s_params.returnRoutes = true;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this.directions = new Directions({&lt;BR /&gt; map: me.map,&lt;BR /&gt; routeTaskUrl: url,&lt;BR /&gt; routeSymbol: sym,&lt;BR /&gt; directionsLengthUnits: 'esriKilometers',&lt;BR /&gt; routeParams:&lt;SPAN&gt;s_params&lt;/SPAN&gt;,&lt;BR /&gt; canModifyStops: false,&lt;BR /&gt; showMilesKilometersOption: false,&lt;BR /&gt; showReturnToStartOption: false,&lt;BR /&gt; showTravelModesOption: false,&lt;BR /&gt; showPrintPage: false,&lt;BR /&gt; returnRoutes:true&lt;BR /&gt; }, 'directions');&lt;BR /&gt;&lt;SPAN&gt;this.&lt;/SPAN&gt;directions.startup();&lt;BR /&gt;&lt;SPAN&gt;this&lt;/SPAN&gt;.directions.on('directions-finish', lang.hitch(me, me._directionsFinished));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i also try to pass the parameter as Json.also try to Update the Routetask property.but still the same issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me in this regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 16:20:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-paramter-is-not-effecting-in-direction/m-p/538026#M50128</guid>
      <dc:creator>Haider_AliFaheem</dc:creator>
      <dc:date>2016-09-09T16:20:00Z</dc:date>
    </item>
  </channel>
</rss>

