Page 1 of 1

Activation of the historical speed patterns

Posted: Tue Mar 06, 2018 12:25 pm
by michel_wsc
Hello,
is it possible to provide a sample profile snippet that activates the usage of the historical speed patterns?
Best regards,
Uli

Re: Activation of the historical speed patterns

Posted: Tue Mar 06, 2018 12:30 pm
by Bernd Welter
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

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>

Re: Activation of the historical speed patterns

Posted: Tue Mar 06, 2018 12:40 pm
by michel_wsc
...thanks a lot. It's working fine!