<?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 Directions Component Point Barriers don't work... in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-point-barriers-don-t-work/m-p/131150#M3095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings Forum,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the directions component in an app and I am trying to use some point locations (road closures) as barriers.&amp;nbsp; I have added them to the route options and in the debugger can see that they are loaded into the directions component instance in my app. I have also verified in the debugger that they are in the correct projection. When the getDirections() are executed, it just ignores the point barriers.&amp;nbsp; What am I missing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;esri:Directions id="drivingDirections" width="280" height="{directionsContainer.height -30}" left="5" bottom="5" 
&amp;nbsp; map="{map}" routeOptions="{directionOptions}" geocoderOptions="{directionGeocoderOptions}" 
&amp;nbsp; url="http://gis.yakimawa.gov/arcgis101/rest/services/Streets/StreetsNetwork/NAServer/Route"/&amp;gt;
&amp;nbsp; 
&amp;lt;esri:DirectionsRouteOptions id="directionOptions" pointBarriers="{roadClosures}"&amp;nbsp; /&amp;gt;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;// get road closures
roadClosuresURL = event.result.configuration.roadClosuresURL;
var rcQuery:Query = new Query();
rcQuery.where = 'OBJECTID &amp;gt; 0';
rcQuery.outFields = ["*"];
rcQuery.returnGeometry = true;
rcQuery.outSpatialReference = new SpatialReference(102100);
roadClosuresQueryTask.execute(rcQuery);
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp; 
private function roadClosuresResult(result:QueryEvent):void {
 roadClosures = result.featureSet;
}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 May 2014 16:16:14 GMT</pubDate>
    <dc:creator>TomSellsted</dc:creator>
    <dc:date>2014-05-02T16:16:14Z</dc:date>
    <item>
      <title>Directions Component Point Barriers don't work...</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-point-barriers-don-t-work/m-p/131150#M3095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings Forum,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the directions component in an app and I am trying to use some point locations (road closures) as barriers.&amp;nbsp; I have added them to the route options and in the debugger can see that they are loaded into the directions component instance in my app. I have also verified in the debugger that they are in the correct projection. When the getDirections() are executed, it just ignores the point barriers.&amp;nbsp; What am I missing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;esri:Directions id="drivingDirections" width="280" height="{directionsContainer.height -30}" left="5" bottom="5" 
&amp;nbsp; map="{map}" routeOptions="{directionOptions}" geocoderOptions="{directionGeocoderOptions}" 
&amp;nbsp; url="http://gis.yakimawa.gov/arcgis101/rest/services/Streets/StreetsNetwork/NAServer/Route"/&amp;gt;
&amp;nbsp; 
&amp;lt;esri:DirectionsRouteOptions id="directionOptions" pointBarriers="{roadClosures}"&amp;nbsp; /&amp;gt;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;// get road closures
roadClosuresURL = event.result.configuration.roadClosuresURL;
var rcQuery:Query = new Query();
rcQuery.where = 'OBJECTID &amp;gt; 0';
rcQuery.outFields = ["*"];
rcQuery.returnGeometry = true;
rcQuery.outSpatialReference = new SpatialReference(102100);
roadClosuresQueryTask.execute(rcQuery);
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp; 
private function roadClosuresResult(result:QueryEvent):void {
 roadClosures = result.featureSet;
}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 16:16:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/directions-component-point-barriers-don-t-work/m-p/131150#M3095</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2014-05-02T16:16:14Z</dc:date>
    </item>
  </channel>
</rss>

