Activation of the historical speed patterns

This forum deals with any kind of routing computation whether it is simple A:B-routing, calculation of isochrones, simple matrix computation or nearest search.
Post Reply
michel_wsc
Posts: 8
Joined: Mon Mar 05, 2018 4:00 pm

Activation of the historical speed patterns

Post 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
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Activation of the historical speed patterns

Post 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>
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... :twisted:
michel_wsc
Posts: 8
Joined: Mon Mar 05, 2018 4:00 pm

Re: Activation of the historical speed patterns

Post by michel_wsc »

...thanks a lot. It's working fine!
Post Reply