<?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 Save route itinerary details and load it again in arcgis api js 3.38 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/save-route-itinerary-details-and-load-it-again-in/m-p/1113203#M75149</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working with arcgis api 3.38 Directions Widget, and Im wondering if can I save the route itinerary generated in a database or a file and then give the user the possibility to load the saved route again on map.&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
    <pubDate>Tue, 02 Nov 2021 14:34:59 GMT</pubDate>
    <dc:creator>benchikh</dc:creator>
    <dc:date>2021-11-02T14:34:59Z</dc:date>
    <item>
      <title>Save route itinerary details and load it again in arcgis api js 3.38</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/save-route-itinerary-details-and-load-it-again-in/m-p/1113203#M75149</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working with arcgis api 3.38 Directions Widget, and Im wondering if can I save the route itinerary generated in a database or a file and then give the user the possibility to load the saved route again on map.&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 14:34:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/save-route-itinerary-details-and-load-it-again-in/m-p/1113203#M75149</guid>
      <dc:creator>benchikh</dc:creator>
      <dc:date>2021-11-02T14:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Save route itinerary details and load it again in arcgis api js 3.38</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/save-route-itinerary-details-and-load-it-again-in/m-p/1114079#M75162</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/529708"&gt;@benchikh&lt;/a&gt;,&amp;nbsp;thanks for posting your question here. If you're on 3x (and I do recommend using 4x if you have the ability; we have a lot of exciting Directions work in development there), then you can use the directions-finish event to grab the route results from the Directions widget.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/directions-amd.html#event-directions-finish" target="_blank"&gt;https://developers.arcgis.com/javascript/3/jsapi/directions-amd.html#event-directions-finish&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The route result should have all the information you need. You can save it as a portal item and share it easily, or handle it locally as you wish.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/routeresult-amd.html" target="_blank"&gt;https://developers.arcgis.com/javascript/3/jsapi/routeresult-amd.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 14:59:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/save-route-itinerary-details-and-load-it-again-in/m-p/1114079#M75162</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2021-11-04T14:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Save route itinerary details and load it again in arcgis api js 3.38</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/save-route-itinerary-details-and-load-it-again-in/m-p/1114106#M75166</link>
      <description>&lt;P&gt;HI Many thanks for your response&lt;/P&gt;&lt;P&gt;I can get the directions result with the below code instructions&lt;/P&gt;&lt;P&gt;directionsW.on("directions-finish", changeHandler);&lt;/P&gt;&lt;P&gt;function changeHandler(data) {&lt;BR /&gt;console.log("done", data.result);&lt;BR /&gt;dataFounded = data.result.routeResults[0];&lt;BR /&gt;if (data.result.routeResults.length &amp;gt; 0) {&lt;BR /&gt;const stopes = data.result.routeResults[0].stops;&lt;BR /&gt;stopes.forEach(function (result, i) {&lt;BR /&gt;console.log(result.attributes.Name);&lt;BR /&gt;});&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I dont know how can I save in a portal and load it again as you mentioned?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the second choise is save it locally and this is what I'm traying to do so I arrived to save the points(Stops) but still not able to load them again correctly on the map with associated restriction.&lt;/P&gt;&lt;P&gt;so if you could help me again with that it would be much appreciated.&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 15:30:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/save-route-itinerary-details-and-load-it-again-in/m-p/1114106#M75166</guid>
      <dc:creator>benchikh</dc:creator>
      <dc:date>2021-11-04T15:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Save route itinerary details and load it again in arcgis api js 3.38</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/save-route-itinerary-details-and-load-it-again-in/m-p/1114510#M75182</link>
      <description>&lt;P&gt;Saving to a portal can be easily accomplished with the Directions widget itself. Look at line 51 here:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=widget_directions_basic" target="_blank"&gt;https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=widget_directions_basic&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Another option is to use the RouteTask to handle the routing between points:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=routetask_multiple_stops" target="_blank"&gt;https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=routetask_multiple_stops&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also worth noting, if you're starting a new project, I highly recommend the 4x directions widget, which will soon have saving to portal as an option as well, and is the more modern and recommended approach:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/widgets-directions/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/widgets-directions/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 15:35:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/save-route-itinerary-details-and-load-it-again-in/m-p/1114510#M75182</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2021-11-05T15:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Save route itinerary details and load it again in arcgis api js 3.38</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/save-route-itinerary-details-and-load-it-again-in/m-p/1114838#M75192</link>
      <description>&lt;P&gt;Hi Thanks for your reply&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I already tried that, I have turned the showSaveBtn to true value, but Im not able to see the button on my widget, looks like there is something need to be configured on our Arcgis Server.&lt;/P&gt;&lt;P&gt;About 4.x Versio, OK I will try to work with it but Im not sure if can I find all the features/options that are in the Directions widget within 3.38&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 11:34:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/save-route-itinerary-details-and-load-it-again-in/m-p/1114838#M75192</guid>
      <dc:creator>benchikh</dc:creator>
      <dc:date>2021-11-08T11:34:33Z</dc:date>
    </item>
  </channel>
</rss>

