<?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: Saving the results of a route request into a Feature Layer? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/saving-the-results-of-a-route-request-into-a/m-p/1041239#M72240</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/457044"&gt;@RobBoothIBM&lt;/a&gt;,&amp;nbsp;currently, we do not support saving the RouteLayer yet with 4x. This functionality is under active development, and should be coming soon.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Mar 2021 22:14:26 GMT</pubDate>
    <dc:creator>Noah-Sager</dc:creator>
    <dc:date>2021-03-26T22:14:26Z</dc:date>
    <item>
      <title>Saving the results of a route request into a Feature Layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/saving-the-results-of-a-route-request-into-a/m-p/1040199#M72177</link>
      <description>&lt;P&gt;I've successfully called the NAServer route API and using returnRoutes=true, I have an object within my javascript that contains the results of my routing request.&lt;/P&gt;&lt;P&gt;How can I add this to a feature layer so it gets permanently stored?&lt;/P&gt;&lt;P&gt;I've tried using layer.add and applyEdits but nothing seems to happen, and I don't appear to get any error messages.&lt;/P&gt;&lt;P&gt;This is my first time battling with javascript and the ESRI SDK, so I might be making foolish errors.&amp;nbsp; So,&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Is the route object returned from the routing service a valid geometry to save in a feature layer?&lt;/P&gt;&lt;P&gt;2) Do I have to create a feature layer first to save it to?&amp;nbsp; Does it have to have the exact same attributes?&lt;/P&gt;&lt;P&gt;3) Has anybody ever done this, and can point me at some sample code that might help?&lt;/P&gt;&lt;P&gt;Many thanks in advance&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 14:41:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/saving-the-results-of-a-route-request-into-a/m-p/1040199#M72177</guid>
      <dc:creator>RobBoothIBM</dc:creator>
      <dc:date>2021-03-24T14:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Saving the results of a route request into a Feature Layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/saving-the-results-of-a-route-request-into-a/m-p/1041239#M72240</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/457044"&gt;@RobBoothIBM&lt;/a&gt;,&amp;nbsp;currently, we do not support saving the RouteLayer yet with 4x. This functionality is under active development, and should be coming soon.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 22:14:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/saving-the-results-of-a-route-request-into-a/m-p/1041239#M72240</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2021-03-26T22:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Saving the results of a route request into a Feature Layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/saving-the-results-of-a-route-request-into-a/m-p/1041466#M72247</link>
      <description>&lt;P&gt;Thanks for the reply.&amp;nbsp; If I generate my own APIs to save and load the routes, is it possible to add these results to a layer/directions object and have them display as per normal, without having to re-calculate the route?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 10:48:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/saving-the-results-of-a-route-request-into-a/m-p/1041466#M72247</guid>
      <dc:creator>RobBoothIBM</dc:creator>
      <dc:date>2021-03-29T10:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Saving the results of a route request into a Feature Layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/saving-the-results-of-a-route-request-into-a/m-p/1041635#M72255</link>
      <description>&lt;P&gt;I think it might be possible to save it as a feature collection, but I don't know how "smart" it would be. We've been actively working on this.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 17:19:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/saving-the-results-of-a-route-request-into-a/m-p/1041635#M72255</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2021-03-29T17:19:02Z</dc:date>
    </item>
  </channel>
</rss>

