<?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 After solving a route, stop fields passed through a feature set are not being preserved in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/after-solving-a-route-stop-fields-passed-through-a/m-p/1104731#M74878</link>
    <description>&lt;P&gt;I am passing a FeatureSet into the stops for RouteParameters.&amp;nbsp; When looking at the RouteParameters using a console.log, I can see the Fields I have specified for the stops.&amp;nbsp; However, once the route.solve is run, the stops that are returned did not preserve any of the information I was trying to pass in.&amp;nbsp; Here's the snippet of code that I am using:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;      const routeParams = new RouteParameters({
        stops: new FeatureSet({ features: featureStops, fields: fields, objectIdField: "ObjectID" }),
        findBestSequence: true,
        preserveFirstStop: true,
        returnStops: true,
        restrictUTurns: "at-dead-ends-only",
        returnDirections: true,
        directionsLanguage: "en_US"
      });
      route.solve(routeUrl, routeParams)
        .then((data)=&amp;gt; {
          if (data.routeResults.length &amp;gt; 0) {
            showRoute(data.routeResults[0].route);
            //console.log(routeParams);
            let newStops = data.routeResults[0].stops;
            //console.log(data.routeResults[0]);
            //console.log(newStops);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any pointers on where I am doing something wrong would be much appreciated!&amp;nbsp; Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 05 Oct 2021 13:20:53 GMT</pubDate>
    <dc:creator>JeffHaupt</dc:creator>
    <dc:date>2021-10-05T13:20:53Z</dc:date>
    <item>
      <title>After solving a route, stop fields passed through a feature set are not being preserved</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/after-solving-a-route-stop-fields-passed-through-a/m-p/1104731#M74878</link>
      <description>&lt;P&gt;I am passing a FeatureSet into the stops for RouteParameters.&amp;nbsp; When looking at the RouteParameters using a console.log, I can see the Fields I have specified for the stops.&amp;nbsp; However, once the route.solve is run, the stops that are returned did not preserve any of the information I was trying to pass in.&amp;nbsp; Here's the snippet of code that I am using:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;      const routeParams = new RouteParameters({
        stops: new FeatureSet({ features: featureStops, fields: fields, objectIdField: "ObjectID" }),
        findBestSequence: true,
        preserveFirstStop: true,
        returnStops: true,
        restrictUTurns: "at-dead-ends-only",
        returnDirections: true,
        directionsLanguage: "en_US"
      });
      route.solve(routeUrl, routeParams)
        .then((data)=&amp;gt; {
          if (data.routeResults.length &amp;gt; 0) {
            showRoute(data.routeResults[0].route);
            //console.log(routeParams);
            let newStops = data.routeResults[0].stops;
            //console.log(data.routeResults[0]);
            //console.log(newStops);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any pointers on where I am doing something wrong would be much appreciated!&amp;nbsp; Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 13:20:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/after-solving-a-route-stop-fields-passed-through-a/m-p/1104731#M74878</guid>
      <dc:creator>JeffHaupt</dc:creator>
      <dc:date>2021-10-05T13:20:53Z</dc:date>
    </item>
  </channel>
</rss>

