<?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 Historical Traffic Data Attributes in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/historical-traffic-data-attributes/m-p/574906#M5520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to make a road network that uses the location allocation within network analyst. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This network needs to use historical traffic data to determine travel time but optimise on transport cost.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To do this I have a number of attributes, including:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TrafficTime - the travel time based on historical traffic data&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FallbackTime - the travel time based on the road speed limit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TimeCost - the time component of transport cost&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Time cost is a script evaluator with an hourly rate (~$50) as a parameter (HourlyCost)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have written the evaluator as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TimeCost = Edge.AttributeValueByName("TrafficTime")*ParameterValueByName("HouryCost")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that the TrafficTime and FallbackTime evaluators are working correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run this I get a TrafficTime of 3.3 hours and a FallbackTime of 1.1 hours.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is with the TimeCost evaluator. No matter how I write it, the FallbackTime is always used, not the TrafficTime.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. I always get $55 (1.1*50) instead of $165 (3.3 * 50)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone please tell me what I have done wrong? Why is the FallbackTime always being used? Is there a way around this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jan 2013 06:36:20 GMT</pubDate>
    <dc:creator>AlisaRedsell</dc:creator>
    <dc:date>2013-01-11T06:36:20Z</dc:date>
    <item>
      <title>Historical Traffic Data Attributes</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/historical-traffic-data-attributes/m-p/574906#M5520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to make a road network that uses the location allocation within network analyst. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This network needs to use historical traffic data to determine travel time but optimise on transport cost.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To do this I have a number of attributes, including:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TrafficTime - the travel time based on historical traffic data&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FallbackTime - the travel time based on the road speed limit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TimeCost - the time component of transport cost&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Time cost is a script evaluator with an hourly rate (~$50) as a parameter (HourlyCost)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have written the evaluator as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TimeCost = Edge.AttributeValueByName("TrafficTime")*ParameterValueByName("HouryCost")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that the TrafficTime and FallbackTime evaluators are working correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run this I get a TrafficTime of 3.3 hours and a FallbackTime of 1.1 hours.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is with the TimeCost evaluator. No matter how I write it, the FallbackTime is always used, not the TrafficTime.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. I always get $55 (1.1*50) instead of $165 (3.3 * 50)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone please tell me what I have done wrong? Why is the FallbackTime always being used? Is there a way around this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 06:36:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/historical-traffic-data-attributes/m-p/574906#M5520</guid>
      <dc:creator>AlisaRedsell</dc:creator>
      <dc:date>2013-01-11T06:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Historical Traffic Data Attributes</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/historical-traffic-data-attributes/m-p/574907#M5521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There isn�??t a way to use a script evaluator to get cost attribute values at a certain time, unfortunately. However, the results of your analysis won�??t change by scaling travel times by a constant value. So could you solve you problem without scaling? For instance, if you don't want people to spend more than $10 on travel costs getting to your facilities, you could convert that to a travel time and put the value as the impedance cutoff, then solve. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If that doesn't work for you, there are two other options: write a custom evaluator or use a scaled-cost polygon barrier. The recommended way is writing a custom evaluator, which is capable of getting what you want, but this may take some time to set up if you�??re not familiar with how to do it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The other option is to create a scaled cost polygon barrier that covers your network, set the Attr_TravelTime field to your wage value, then solve using TravelTime as the impedance. This would work on a small network but it would take a long time to load and solve on a larger network.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 15:42:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/historical-traffic-data-attributes/m-p/574907#M5521</guid>
      <dc:creator>RobertGarrity</dc:creator>
      <dc:date>2013-01-11T15:42:35Z</dc:date>
    </item>
  </channel>
</rss>

