<?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: Conditional restricted turns based on vehicle length in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/conditional-restricted-turns-based-on-vehicle/m-p/739233#M7082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are most likely looking for parameterized restriction attributes. Here is the help documentation on using those restrictions to &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/newreply.php?p=226041&amp;amp;noquote=1&amp;amp;ESRISessionID=tHJDXLArGNWYGNsJyJNRfAJAf-NlfqQf497Oth4pKaOWEuiW3SWAUu6J29tI-Lm9EyKQ7LpA"&gt;model vehicle height/weight/length parameters&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The doc suggests that you:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Create a descriptor attribute called MaxVehicleLength.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Create a restriction attribute called VehicleLengthRestriction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The restriction attribute should have a parameter called VehicleLength.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have the descriptor read in field values from your turn source with the maximum length vehicle allowed to make the turn.&amp;nbsp; Say, "64".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have the restriction attribute be a function evaluator that checks if MaxVehicleLength &amp;lt; VehicleLength, the turn is restricted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, for edges and junctions, your restriction attribute will always return false (not restricted).&amp;nbsp; But for your Turn source, it should check the function evaluator to decide if the VehicleLength is greater than the MaxVehicleLength.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can set a default VehicleLength that will be used automatically.&amp;nbsp; Then, in your analysis properties, for each analysis layer you work with, you can set a VehicleLength specific to that analysis.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Aug 2012 14:54:33 GMT</pubDate>
    <dc:creator>PatrickStevens</dc:creator>
    <dc:date>2012-08-22T14:54:33Z</dc:date>
    <item>
      <title>Conditional restricted turns based on vehicle length</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/conditional-restricted-turns-based-on-vehicle/m-p/739232#M7081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to restrict turns at particular intersections if a vehicle is greater than a specified length.&amp;nbsp; In other words,&amp;nbsp; any vehicle over 65 feet cannot turn left or right, but driving straight through the intersection is OK.&amp;nbsp; Further, any vehicle under 65 feet can turn in any direction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My approach is:&amp;nbsp; In the network dataset, first I created a new feature class (named:&amp;nbsp; LengthTurnRestrictions).&amp;nbsp; I have created turn features, snapping them to the edges of the network (see the illustration below).&amp;nbsp; I added a field to the attribute table named "LengthRestiction" and have coded all of these new features as LengthRestriction = "TRUE".&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]17116[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the Network dataset properties, I have created a turn restriction attribute (named: LengthTurnRestriction).&amp;nbsp; I've also created a network attribute parameter (named: VehicleLength and set the default value to 0).&amp;nbsp; Finally, I know that I need to set the attribute evaluator to use that parameter, but I'm not sure exactly what to do.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My thought was to set the evaluator Type be set to VB Script and the value "restricted" using VB script like:&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;restricted=FALSE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Select Case UCase([LengthTurnRestriction])&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Case "TRUE":restricted =TRUE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Select&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This did not work as I'd hoped.&amp;nbsp; Please comment about my approach, or better yet, let me know just what I need to do to enforce length-based turn restrictions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 15:21:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/conditional-restricted-turns-based-on-vehicle/m-p/739232#M7081</guid>
      <dc:creator>RobertLindquist</dc:creator>
      <dc:date>2012-08-21T15:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional restricted turns based on vehicle length</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/conditional-restricted-turns-based-on-vehicle/m-p/739233#M7082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are most likely looking for parameterized restriction attributes. Here is the help documentation on using those restrictions to &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/newreply.php?p=226041&amp;amp;noquote=1&amp;amp;ESRISessionID=tHJDXLArGNWYGNsJyJNRfAJAf-NlfqQf497Oth4pKaOWEuiW3SWAUu6J29tI-Lm9EyKQ7LpA"&gt;model vehicle height/weight/length parameters&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The doc suggests that you:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Create a descriptor attribute called MaxVehicleLength.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Create a restriction attribute called VehicleLengthRestriction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The restriction attribute should have a parameter called VehicleLength.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have the descriptor read in field values from your turn source with the maximum length vehicle allowed to make the turn.&amp;nbsp; Say, "64".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have the restriction attribute be a function evaluator that checks if MaxVehicleLength &amp;lt; VehicleLength, the turn is restricted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, for edges and junctions, your restriction attribute will always return false (not restricted).&amp;nbsp; But for your Turn source, it should check the function evaluator to decide if the VehicleLength is greater than the MaxVehicleLength.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can set a default VehicleLength that will be used automatically.&amp;nbsp; Then, in your analysis properties, for each analysis layer you work with, you can set a VehicleLength specific to that analysis.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2012 14:54:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/conditional-restricted-turns-based-on-vehicle/m-p/739233#M7082</guid>
      <dc:creator>PatrickStevens</dc:creator>
      <dc:date>2012-08-22T14:54:33Z</dc:date>
    </item>
  </channel>
</rss>

