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:
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
Routing extreme: SpeedPatterns over time
- Bernd Welter
- Site Admin
- Posts: 2698
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
- Bernd Welter
- Site Admin
- Posts: 2698
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Routing extreme: SpeedPatterns over time
Here's another test output based on SpeedPatterns
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...
- Bernd Welter
- Site Admin
- Posts: 2698
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Routing extreme: SpeedPatterns over time
I attached the sample executeable below so if you want to play with it JUST DO IT!
Regards Bernd
- 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)
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><Profile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http:///xmap/schema/XMapProfile.xsd">
<FeatureLayer majorVersion="1" minorVersion="0">
<GlobalSettings enableTimeDependency="true"/>
<Themes>
<Theme enabled="true" id="PTV_SpeedPatterns"/>
<Theme enabled="true" id="PTV_TruckAttributes"/>
<Theme enabled="true" id="PTV_TrafficIncidents"/>
</Themes>
</FeatureLayer>
</Profile></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><?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"/>
<Theme id="PTV_TruckAttributes" enabled="true"/>
</Themes>
</FeatureLayer>
<Routing majorVersion="2" minorVersion="0">
<Course>
<AdditionalDataRules enabled="true"/>
<DynamicRouting limitDynamicSpeedToStaticSpeed="false"/>
</Course>
</Routing>
</Profile></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...
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...