Hello,
is it possible to provide a sample profile snippet that activates the usage of the historical speed patterns?
Best regards,
Uli
Activation of the historical speed patterns
-
- Posts: 8
- Joined: Mon Mar 05, 2018 4:00 pm
- Bernd Welter
- Site Admin
- Posts: 2695
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Activation of the historical speed patterns
Sure - try this one:
It uses FeatureLayers (PTV_SpeedPatterns for historical car data, PTV_TruckSpeedPatterns for historical truck data) and in combination with the RoutingOption.START_TIME (not possible to be preconfigured) it will ensure that the driving times and distances reflect the historical daytime conditions.
Be aware that this fragment only set's the values which are relevant for your usecase. Any other property such as vehicles dimensions are not part of the sample.
Best regards,
Bernd
It uses FeatureLayers (PTV_SpeedPatterns for historical car data, PTV_TruckSpeedPatterns for historical truck data) and in combination with the RoutingOption.START_TIME (not possible to be preconfigured) it will ensure that the driving times and distances reflect the historical daytime conditions.
Be aware that this fragment only set's the values which are relevant for your usecase. Any other property such as vehicles dimensions are not part of the sample.
Best regards,
Bernd
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<Profile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http:///xroute/schema/XRouteProfile.xsd">
<FeatureLayer majorVersion="1" minorVersion="0">
<GlobalSettings enableTimeDependency="true"/>
<Themes>
<Theme id="PTV_SpeedPatterns" enabled="true"/>
</Themes>
</FeatureLayer>
<Routing majorVersion="2" minorVersion="0">
<Course>
<AdditionalDataRules enabled="true"/>
<DynamicRouting limitDynamicSpeedToStaticSpeed="false"/>
</Course>
</Routing>
</Profile>
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...
-
- Posts: 8
- Joined: Mon Mar 05, 2018 4:00 pm
Re: Activation of the historical speed patterns
...thanks a lot. It's working fine!