<?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: Directions Component Stops Provider in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214031#M5000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Robert for the reply. I will give that a shot and update this post.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jan 2014 19:29:42 GMT</pubDate>
    <dc:creator>raffia</dc:creator>
    <dc:date>2014-01-14T19:29:42Z</dc:date>
    <item>
      <title>Directions Component Stops Provider</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214029#M4998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to provide a "Directions from here" and ..to here functionality, so I want to use the stopProvider property in the Directions Component. I tried passing an XY from the map point, but to no success. Any sample one line of code showing how to pass the stopProver please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Raffi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 09:38:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214029#M4998</guid>
      <dc:creator>raffia</dc:creator>
      <dc:date>2014-01-14T09:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Component Stops Provider</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214030#M4999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Raffi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I don't have a sample for this but the documentation says that the stopProvider is an object (ArrayCollection) of DirectionsStop objects. So just create some DirectionStop objects and add them to an array collection and pass that to the Directions component.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 11:13:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214030#M4999</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-01-14T11:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Component Stops Provider</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214031#M5000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Robert for the reply. I will give that a shot and update this post.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 19:29:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214031#M5000</guid>
      <dc:creator>raffia</dc:creator>
      <dc:date>2014-01-14T19:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Component Stops Provider</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214032#M5001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Robert and Raffi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That will be so so cool. This is exactly what I am trying to do right now -- what a coincidence. I will definitely post an update if I come accross anything exciting or interesting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 02:28:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214032#M5001</guid>
      <dc:creator>KomanDiabate</dc:creator>
      <dc:date>2014-01-17T02:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Component Stops Provider</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214033#M5002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Koman;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the post. Am planning to dive into this myself in two or three days, and will update here for sure as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Raffi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 10:20:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214033#M5002</guid>
      <dc:creator>raffia</dc:creator>
      <dc:date>2014-01-17T10:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Component Stops Provider</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214034#M5003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Raffi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I started researching a bit this weekend, I came across these two ESRI docs, you may have seen these also. Maybe interesting... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;They are passing xy values somehow manually to a graphic stops / featureset. I am assuming you could do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have your xy in an arraCollection, you could loop the arrayCollection and add them directly to the graphic named stops&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var stops:Graphic = new Graphic(new MapPoint(arraCollection.X, arrayCoolection.Y); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var stopsFS:FeatureSet = new FeatureSet([stops]);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// See first link&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Routing task:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/en/flex/guide/routing-tasks.htm"&gt;https://developers.arcgis.com/en/flex/guide/routing-tasks.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/en/flex/api-reference/com/esri/ags/tasks/supportClasses/RouteParameters.html#includeExamplesSummary"&gt;https://developers.arcgis.com/en/flex/api-reference/com/esri/ags/tasks/supportClasses/RouteParameters.html#includeExamplesSummary&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jan 2014 15:36:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214034#M5003</guid>
      <dc:creator>KomanDiabate</dc:creator>
      <dc:date>2014-01-19T15:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Component Stops Provider</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214035#M5004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Here is a sample seting the stops searchTerm to be geocoded.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:s="library://ns.adobe.com/flex/spark"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:esri="http://www.esri.com/2008/ags"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pageTitle="Directions component sample"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fx:Script&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;![CDATA[
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import com.esri.ags.SpatialReference;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import com.esri.ags.components.supportClasses.DirectionsStop;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import mx.events.FlexEvent;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected function dir_creationCompleteHandler(event:FlexEvent):void
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var stop:DirectionsStop = dir.stopProvider[0];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stop.editable = false;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stop.searchTerm = '1123 Island Ave, San Diego, California, 92102';
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var stop2:DirectionsStop = dir.stopProvider[1];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stop2.editable = false;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stop2.searchTerm = '924 S 16th St, San Diego, California, 92102';
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var stop3:DirectionsStop = new DirectionsStop();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stop3.searchTerm = '2025 L St, San Diego, California, 92102'
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dir.stopProvider.addItem(stop3);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]]&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/fx:Script&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;s:layout&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;s:HorizontalLayout paddingLeft="2"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/s:layout&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Directions width="320" height="100%"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map="{map}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id="dir"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; creationComplete="dir_creationCompleteHandler(event)"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://sampleserver6.arcgisonline.com/arcgis/rest/services/NetworkAnalysis/SanDiego/NAServer/Route"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Map id="map"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:extent&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:WebMercatorExtent xmin="-13055785" ymin="3848161" xmax="-13025898" ymax="3866239"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; spatialReference="{new SpatialReference(102100)}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:extent&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:ArcGISTiledMapServiceLayer/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:Map&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;lt;/s:Application&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:29:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214035#M5004</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T10:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Component Stops Provider</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214036#M5005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Robert, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is just brilliant. Thanks a bunch.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my particular case, I have a list of addresses that I have to pass to the stopProvider.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I will have to loop the arrayCollection list and while looping add them to thestopProvider.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I see you have explicitly name the stops(stop1, stop2 etc.) not sure if they need to be named as such in my implementation ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not in front of a computer right now, but do think the logic below will work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;While looping the arrayCollection:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PseudoCde&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For(var i:int=0; i&amp;lt;arrayCollection.length; i++)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var stop:DirectionStop=new DirectionStop();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stop.searchterm=arrayCollection.Address,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dir.stopProvider.aadItem(stop);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure if I need to explicitly declare the stops such as stop1, stop2 etc: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Var stop:DirectionStop=dir.stopProvider[1];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope you can enlighten me on that portion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Just love the way you put your code together, brilliant.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in bunch.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jan 2014 19:56:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214036#M5005</guid>
      <dc:creator>KomanDiabate</dc:creator>
      <dc:date>2014-01-19T19:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Component Stops Provider</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214037#M5006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Koman,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; The directions component always begins with two stops in the dataprovider so that is why I create explicit vars for those stops so that I can just manipulate them. One you have those two set then you can just add more the way I did for my third stop.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jan 2014 23:33:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214037#M5006</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-01-19T23:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Component Stops Provider</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214038#M5007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Excellent, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I understand why you declare the first two stops and just instantiate the third one. I will experiment with this on Tuesday at the office and see&amp;nbsp; if I can make it work using a collection of address. I appreciate your help on this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a bunch.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jan 2014 23:42:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214038#M5007</guid>
      <dc:creator>KomanDiabate</dc:creator>
      <dc:date>2014-01-19T23:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Component Stops Provider</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214039#M5008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Raffi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Going from Robert help, I was able to implement the routing through arrayCollection and sending a list of addresses to the direction component, this is pretty cool. Thanks Robert for help and clarification on routing and directions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am posting the code just in case someone else need to do the same thing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:s="library://ns.adobe.com/flex/spark"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:esri="http://www.esri.com/2008/ags"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:mx="library://ns.adobe.com/flex/mx"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pageTitle="Directions component sample"&amp;gt;
 
 &amp;lt;fx:Script&amp;gt;
&amp;nbsp; &amp;lt;![CDATA[
&amp;nbsp;&amp;nbsp; import com.esri.ags.SpatialReference;
&amp;nbsp;&amp;nbsp; import com.esri.ags.components.supportClasses.DirectionsStop;
&amp;nbsp;&amp;nbsp; import mx.events.FlexEvent;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; [Bindable]
&amp;nbsp;&amp;nbsp; private var stop0:int=0;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; [Bindable]
&amp;nbsp;&amp;nbsp; private var stop0Address:String="401 B Street, San Diego, California, 92101";
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; protected function dir_creationCompleteHandler(event:FlexEvent):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var stop:DirectionsStop = dir.stopProvider[stop0];
&amp;nbsp;&amp;nbsp;&amp;nbsp; stop.editable = false;
&amp;nbsp;&amp;nbsp;&amp;nbsp; stop.searchTerm = stop0Address;
 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var i:int;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var value:Object;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var value2:Object;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var stopCount:int=1;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (i=0; i&amp;lt;theAddress.length; i++)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value=theAddress.getItemAt(i);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(value.count==1)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var stop1:DirectionsStop = dir.stopProvider[1];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //set editable
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stop1.editable = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stop1.searchTerm = value.addr; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace("Hello"+ value.addr);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(value.count&amp;gt;1)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stopCount+=stopCount+1;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //trace(value.addr);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var st:DirectionsStop = new DirectionsStop();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; st.stopId=stopCount;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; st.searchTerm = value.addr;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dir.stopProvider.addItem(st);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; 
&amp;nbsp; ]]&amp;gt;
 &amp;lt;/fx:Script&amp;gt;
 &amp;lt;fx:Declarations&amp;gt;
&amp;nbsp; &amp;lt;mx:ArrayCollection id="theAddress"&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;fx:Object addr="1702 India St, San Diego, CA 92101" count="1" /&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;fx:Object addr="1123 Island Ave, San Diego, California, 92102" count="2" /&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;fx:Object addr="924 S 16th St, San Diego, California, 92102" count="3" /&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;fx:Object addr="2025 L St, San Diego, California, 92102" count="4" /&amp;gt;
&amp;nbsp; &amp;lt;/mx:ArrayCollection&amp;gt;
&amp;nbsp; 
 &amp;lt;/fx:Declarations&amp;gt;
 &amp;lt;s:layout&amp;gt;
&amp;nbsp; &amp;lt;s:HorizontalLayout paddingLeft="2"/&amp;gt;
 &amp;lt;/s:layout&amp;gt;
 
 &amp;lt;esri:Directions width="320" height="100%"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map="{map}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id="dir"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; creationComplete="dir_creationCompleteHandler(event)"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://sampleserver6.arcgisonline.com/arcgis/rest/services/NetworkAnalysis/SanDiego/NAServer/Route"/&amp;gt;
 &amp;lt;esri:Map id="map"&amp;gt;
&amp;nbsp; &amp;lt;esri:extent&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:WebMercatorExtent xmin="-13055785" ymin="3848161" xmax="-13025898" ymax="3866239"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; spatialReference="{new SpatialReference(102100)}"/&amp;gt;
&amp;nbsp; &amp;lt;/esri:extent&amp;gt;
&amp;nbsp; &amp;lt;esri:ArcGISTiledMapServiceLayer/&amp;gt;
 &amp;lt;/esri:Map&amp;gt;
 
&amp;lt;/s:Application&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:30:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214039#M5008</guid>
      <dc:creator>KomanDiabate</dc:creator>
      <dc:date>2021-12-11T10:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Component Stops Provider</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214040#M5009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Koman and Robert, many many thanks for the posts and help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am still working on this on my end. We have a tiny bit different setup. We right now are using the default geocoder, but we are using our own street network for Egypt. ESRI does have a bit of coverage, but ours is a bit expanded. We will have our own geo coder service soon...anyways so I cant pass addresses to the component, just map points for now. The other thing is I want to pass one stop only and the user selects the other (for the drive To or From here functionality). I tried a few things, and each one acts up differently...this one throws "&lt;/SPAN&gt;&lt;STRONG&gt;RangeError: Index '0' specified is out of bounds.&lt;/STRONG&gt;&lt;SPAN&gt;" at runtime&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;private function launchLandmarkDirections():void{
 var landmarkStopProvider = new DirectionsStop();
 landmarkStopProvider.location = landmarkMapPoint;
 var stop2:DirectionsStop = new DirectionsStop();


 trace(landmarkStopProvider.location);


 
 landmarkDirectionComponent = new Directions;
 landmarkDirectionComponent.url = "http://tela.roktech.net/arcgis/rest/services/DigitalEgypt/EGIPA_NetworkStreet/NAServer/Route";
 landmarkDirectionComponent.addEventListener(DirectionsEvent.DIRECTIONS_COMPLETE, landmarkDirectionsCompleteHandler);
 landmarkDirectionComponent.map = myMap;


 landmarkDirectionComponent.stopProvider[0] = landmarkStopProvider; 
 
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the trace statement above gives "&lt;/SPAN&gt;&lt;STRONG&gt;MapPoint[x=31.41189186200006,y=30.01863021300005,SpatialReference[wkid=4326]]&lt;/STRONG&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then when I remove the 0 index, making the stopprovider line like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;landmarkDirectionComponent.stopProvider = landmarkStopProvider;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it actually works a little, it adds a point on the map, but like it doesnt commit the value, so the geocoder is blank even though the point is placed. You have to click and drag the point and then the value commits and the geocoder gets filled. You can see this in action on the Beta app, &lt;/SPAN&gt;&lt;A href="http://www.digitaleg.com/Digital_Egypt/EGIPA/Map_English.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.digitaleg.com/Digital_Egypt/EGIPA/Map_English.html&lt;/A&gt;&lt;SPAN&gt; . besides food, click on any type, then from the list on the left select a landmark then select drive to or from, they both are identical now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:30:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214040#M5009</guid>
      <dc:creator>raffia</dc:creator>
      <dc:date>2021-12-11T10:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Component Stops Provider</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214041#M5010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Raffi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Don't create a new directionsStop just set the search term on the first one in the directions component.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var stop:DirectionsStop = dir.stopProvider[0];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stop.editable = false;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stop.searchTerm = '31.41189186200006,30.01863021300005';&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:30:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214041#M5010</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T10:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Component Stops Provider</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214042#M5011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Wow, Great App Raffi. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Its good to know that you can just send the XY to the stop provider. One of my requirement in the future will be to capture the mobile device location and use that as a stop -- stop[0]. This is going to come handy for me also in the near future.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 14:26:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214042#M5011</guid>
      <dc:creator>KomanDiabate</dc:creator>
      <dc:date>2014-01-24T14:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Component Stops Provider</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214043#M5012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Wow, Great App Raffi. &lt;BR /&gt;Its good to know that you can just send the XY to the stop provider. One of my requirement in the future will be to capture the mobile device location and use that as a stop -- stop[0]. This is going to come handy for me also in the near future.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Koman, thank you for your kind words...and good luck with the task on hand &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 20:18:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214043#M5012</guid>
      <dc:creator>raffia</dc:creator>
      <dc:date>2014-01-24T20:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Component Stops Provider</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214044#M5013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Raffi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Did that work for you? If so please mark this post as answered.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 20:20:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214044#M5013</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-01-24T20:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Component Stops Provider</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214045#M5014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Raffi,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Don't create a new directionsStop just set the search term on the first one in the directions component.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var stop:DirectionsStop = dir.stopProvider[0];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stop.editable = false;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stop.searchTerm = '31.41189186200006,30.01863021300005';&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello Robert, thank you very much for the help...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried it and still got the out of bounds runtime error&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"RangeError: Index '0' specified is out of bounds. at mx.collections::ListCollectionView/getItemAt()&lt;E&gt;&lt;/E&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; at mx.collections::ListCollectionView/&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.adobe.com/2006/actionscript/flash/proxy::getProperty()&amp;lt;E&amp;gt;" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.adobe.com/2006/actionscript/flash/proxy::getProperty()&lt;E&gt;&lt;/E&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Map_English/launchLandmarkDirections()&lt;D&gt;&lt;/D&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Map_English/setLandmarkDirectionsTo()&lt;D&gt;&lt;/D&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here is the code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;private function launchLandmarkDirections():void
{


 landmarkDirectionComponent = new Directions;
 landmarkDirectionComponent.url = "http://tela.roktech.net/arcgis/rest/services/DigitalEgypt/EGIPA_NetworkStreet/NAServer/Route";
 landmarkDirectionComponent.addEventListener(DirectionsEvent.DIRECTIONS_COMPLETE, landmarkDirectionsCompleteHandler);
 landmarkDirectionComponent.map = myMap;
 
 var stop:DirectionsStop = landmarkDirectionComponent.stopProvider[0];
 stop.editable = false;
 stop.searchTerm = '31.41189186200006,30.01863021300005';


}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:30:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214045#M5014</guid>
      <dc:creator>raffia</dc:creator>
      <dc:date>2021-12-11T10:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Component Stops Provider</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214046#M5015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Raffi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Is there a reason you are creating the Direction component programatically and not in the MXML markup? It is likely that the Directions component is not finished creating before you attempt to access it's stopprovider (timing issue).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 20:35:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214046#M5015</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-01-24T20:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Component Stops Provider</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214047#M5016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Raffi,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Is there a reason you are creating the Direction component programatically and not in the MXML markup? It is likely that the Directions component is not finished creating before you attempt to access it's stopprovider (timing issue).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That very well could be it Rober. Just most of the app uses little mxml.&amp;nbsp; Maybe I can call a function that listens to the creation complete event from the dir component and in that function assign the stop, if that doesnt work, I will try an mxml component. Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 20:49:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214047#M5016</guid>
      <dc:creator>raffia</dc:creator>
      <dc:date>2014-01-24T20:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Component Stops Provider</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214048#M5017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is great, listening to the creation complete event of the directions component did the trick. Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Last brush up I need to do is that the graphic of the first stop doesn't get added until the directions are generated, I think I have to create a graphic var, but for now this is awesome. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private function launchLandmarkDirections():void
{ 
 landmarkDirectionComponent = new Directions;
 landmarkDirectionComponent.url = "http://tela.roktech.net/arcgis/rest/services/DigitalEgypt/EGIPA_NetworkStreet/NAServer/Route";
 
 
 landmarkDirectionComponent.addEventListener(DirectionsEvent.DIRECTIONS_COMPLETE, landmarkDirectionsCompleteHandler);
 landmarkDirectionComponent.map = myMap;


 
 landmarkDirectionComponent.addEventListener(FlexEvent.CREATION_COMPLETE, setUpDirections)
 
}


private function setUpDirections(event:FlexEvent):void 
{
 var stop:DirectionsStop = landmarkDirectionComponent.stopProvider[0];
 var driveString:String = new String;
 driveString = landmarkMapPoint.x + "," + landmarkMapPoint.y;
 trace(driveString);
 stop.searchTerm = driveString;
 
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:30:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-stops-provider/m-p/214048#M5017</guid>
      <dc:creator>raffia</dc:creator>
      <dc:date>2021-12-11T10:30:13Z</dc:date>
    </item>
  </channel>
</rss>

