Routing extreme: SpeedPatterns over time

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

Routing extreme: SpeedPatterns over time

Post by Bernd Welter »

HI there,

for those who are dealing with time dependent routings: I created a little testclient that may be helpful for evaluation of time dependencies. It computes the route with a fixed waypointlist and an interval of various daytimes.

Besides the changing routing geometries in the map it visualizes the dynamic character of those routes via some histograms:
left diagram: the current route's speed pattern<br />right diagram: red line change of driving period over all routes, white line change of distance over all routes
left diagram: the current route's speed pattern
right diagram: red line change of driving period over all routes, white line change of distance over all routes
The reason why the difference between various scenarios is so big is the Sierichstraße in Hamburg: it is a dynamic one-way street that changes directions twice a day (04:00am and 12:00pm).

I also created a little movie... it is available here (to be deleted from the cloud when I need space):
https://ptvbox.ptvgroup.com/public.php? ... 2a17244500

Feedback is welcome,

Once the testclient has a proper level I can provide it here.

Best regards Bernd
User avatar
Bernd Welter
Site Admin
Posts: 2698
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Routing extreme: SpeedPatterns over time

Post by Bernd Welter »

Here's another test output based on SpeedPatterns
Driving times and distances in 1hour steps
Driving times and distances in 1hour steps
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:
User avatar
Bernd Welter
Site Admin
Posts: 2698
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Routing extreme: SpeedPatterns over time

Post by Bernd Welter »

I attached the sample executeable below so if you want to play with it JUST DO IT!
  • It also works with xServer INTERNET, just set the URLs and provide your token
  • Choose valid coordinates for CENTER and WAYPOINTS (MERCATOR coordinate format)
  • Further configuration parameters are the time behaviour (STart=ReferenceTime and Endtime and timestep)
As always: feedback is welcome!
Regards Bernd
Attachments
xTimeSnippet.zip
[code2=xml]<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="TimeSnippet.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<system.serviceModel>
<bindings />
<client />
</system.serviceModel>
<userSettings>
<TimeSnippet.Properties.Settings>
<setting name="XMap_ProfileXMLSnippet" serializeAs="String">
<value>&lt;Profile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http:///xmap/schema/XMapProfile.xsd"&gt;
&lt;FeatureLayer majorVersion="1" minorVersion="0"&gt;
&lt;GlobalSettings enableTimeDependency="true"/&gt;
&lt;Themes&gt;
&lt;Theme enabled="true" id="PTV_SpeedPatterns"/&gt;
&lt;Theme enabled="true" id="PTV_TruckAttributes"/&gt;
&lt;Theme enabled="true" id="PTV_TrafficIncidents"/&gt;
&lt;/Themes&gt;
&lt;/FeatureLayer&gt;
&lt;/Profile&gt;</value>
</setting>
<setting name="Center" serializeAs="String">
<value>POINT(1111890 7085768)</value>
</setting>
<setting name="Scale" serializeAs="String">
<value>300</value>
</setting>
<setting name="xMap_Url" serializeAs="String">
<value>http://127.0.0.1:50010/xmap/ws/XMap</value>
</setting>
<setting name="UserName" serializeAs="String">
<value>xtok</value>
</setting>
<setting name="Password" serializeAs="String">
<value />
</setting>
<setting name="referenceTime" serializeAs="String">
<value>2016-11-01</value>
</setting>
<setting name="Sleep" serializeAs="String">
<value>100</value>
</setting>
<setting name="AddSeconds" serializeAs="String">
<value>900</value>
</setting>
<setting name="endTime" serializeAs="String">
<value>2016-11-02</value>
</setting>
<setting name="AddDegrees" serializeAs="String">
<value>0</value>
</setting>
<setting name="XMap_Profile" serializeAs="String">
<value>gravelpit</value>
</setting>
<setting name="xRoute_Url" serializeAs="String">
<value>http://127.0.0.1:50030/xroute/ws/XRoute</value>
</setting>
<setting name="WaypointStart" serializeAs="String">
<value>POINT(1111439 7085830)</value>
</setting>
<setting name="WaypointDest" serializeAs="String">
<value>POINT(1113207 7082267)</value>
</setting>
<setting name="XRoute_Profile" serializeAs="String">
<value>TruckFast</value>
</setting>
<setting name="XRoute_ProfileXMLSnippet" serializeAs="String">
<value>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;Profile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http:///xroute/schema/XRouteProfile.xsd"&gt;
&lt;FeatureLayer majorVersion="1" minorVersion="0"&gt;
&lt;GlobalSettings enableTimeDependency="true"/&gt;
&lt;Themes&gt;
&lt;Theme id="PTV_SpeedPatterns" enabled="true"/&gt;
&lt;Theme id="PTV_TruckAttributes" enabled="true"/&gt;
&lt;/Themes&gt;
&lt;/FeatureLayer&gt;
&lt;Routing majorVersion="2" minorVersion="0"&gt;
&lt;Course&gt;
&lt;AdditionalDataRules enabled="true"/&gt;
&lt;DynamicRouting limitDynamicSpeedToStaticSpeed="false"/&gt;
&lt;/Course&gt;
&lt;/Routing&gt;
&lt;/Profile&gt;</value>
</setting>
<setting name="Route_Color" serializeAs="String">
<value>Blue</value>
</setting>
<setting name="Route_Width" serializeAs="String">
<value>20</value>
</setting>
<setting name="Route_Arrows_Visible" serializeAs="String">
<value>False</value>
</setting>
<setting name="Route_Arrows_Color" serializeAs="String">
<value />
</setting>
<setting name="Route_ShowFlags" serializeAs="String">
<value>True</value>
</setting>
<setting name="Route_Drawingprio" serializeAs="String">
<value>6660</value>
</setting>
<setting name="Isochrone_Visible" serializeAs="String">
<value>False</value>
</setting>
<setting name="Route_Center" serializeAs="String">
<value>False</value>
</setting>
</TimeSnippet.Properties.Settings>
</userSettings>
</configuration>[/code2]
(197.87 KiB) Downloaded 368 times
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:
Post Reply