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.
during a recent workshop I was asked how the PTV xServer routing can take care of the weekend lorry ban, e.g. "truck is not allowed to drive in Germany on sunday". I made a little test with my xDynTraffic tool which shows the behaviour of the routing when the FeatureLayer PTV_GeneralTruckRestrictions is activated:
Route from Hamburg to Strasbourg. Usually requires several hours. As the start of the route is set to late saturday evening the truck can't reach the destination on the same day. The vehicle is supposed to have a break on the track due to the weekend lorry ban. You can see the "jump" in the segments list.
The snippet I used in combination with TruckFast 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...
Another nice example, based on 7x24 different dynamic scenarios (static route from Hamburg to Freiburg) in Germany:
Special example for GENERAL TRUCKRESTRICTIONS
Germany has a lorry ban on saturdays during the vacation period of „July 1st till August 31st, 0700 - 2000“.
There‘s also a generic lorry ban on Sundays (00:00 till 22:00, whole year).
So on some weekends the laws apply as follows:
SAT 07:00-20:00 lorry ban
SAT 20:00-24:00 allowed for 2 hours
SUN 00:00 – 22:00 lorry ban
This explains the shape of these 168 hourwise „dynamic times on static routes“ from Hamburg to Freiburg
For some of the scenarios the driver has to take several breaks due to the lorry bans
Thanks for the analysis, Haba!
Best regards Bernd
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...
besides the capability "we can consider this in the routing" there's also the possibility "to visualise" the data in xServer2:
Here are some examples of the European Truck Restrictions. As you surely know:
a map can have a time context
the visualizytion style of a restriction depends on the time dependency mode and whether a restriction applies (red) or not (grey) in the current context
The sample images have beeen created with a SNAPSHOT mode.
Monday, 22.07.2019 - the areas are displayed in grey which means "there is a time based restriction but it doesn't apply in the current time context of the map (monday)
Saturday, 20.07.2019 - temporary lorry ban on saturdays during the holiday season (1.7.-31.8.)
Best regards,
Bernd
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...
For the record: the provisioning of PTV_GeneralTruckRestrictions layer has been discontinued in 2021
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...