Hi,
We use xroute to calculate routes including the PTV_TrafficIncidents. Usually the xRoute searches the fastest path and therefore performs a detour if a traffic incident is on the standard route.
What we need is this:
Is it possible to determine the time that is required on the standard route even if we have to slow down or wait due to a traffic jam?
If it is possible: how does it work then?
Best regards
Judith
How can I calculate the dynamic travel time on a route?
-
- Posts: 1
- Joined: Mon Aug 05, 2019 9:02 am
- Bernd Welter
- Site Admin
- Posts: 2695
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: How can I calculate the dynamic travel time on a route?
Hello Judith,
sounds lkike you need to apply the DynamicTimeOnStaticRoute mechamism:
Here is s sample snippet for xRoute 1:
Does this answer the question?
C u,
Bernd
sounds lkike you need to apply the DynamicTimeOnStaticRoute mechamism:
Here is s sample snippet for xRoute 1:
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Profile parent="truckfast" xmlns:ns2="http://www.ptv.de/com/ptvag/xserver/engines/xpoidbaccess">
<FeatureLayer majorVersion='1' minorVersion='0'>
<GlobalSettings enableTimeDependency="true" enableVehicleDependency="true"/>
<Themes>
<Theme id='PTV_TrafficIncidents' enabled='true'/>
</Themes>
</FeatureLayer>
<Routing majorVersion="2" minorVersion="0">
<Course>
<AdditionalDataRules enabled='true'/>
<DynamicRouting dynamicTimeOnStaticRoute="true" layerName="PTV_TrafficIncidents"
limitDynamicSpeedToStaticSpeed="true" useFreeFlowSpeed="false"
useLegacyDynamic="false">
</DynamicRouting>
</Course>
</Routing>
</Profile>
C u,
Bernd
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany
Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning...
Technical Partner Manager Developer Components
PTV Logistics - Germany
Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning...