As a driver you have to respect several legal regulations concerning the working hours. There are regulations to limit the driving time of heavy vehicles or more general to limit the working time valid for all workers. PTV Developer offers different presets from the EU and US to consider all these regulations.
In the new version of the PTV Developer Routing API V1.28.0 you have the possibility to plan the corresponding break and rest time more efficiently. Up to now, service time on a waypoint was seen as working time and so no break or rest was possible during this time. With the new parameter ‘useServiceTimeForRecreation’ you can choose if this service time could be used for breaks and rests (for example the driver is not involved in loading or unloading goods).
In a similar way the new parameter ‘useTimeOnCombinedTransportForRecreation’ allows to schedule a break or rest during the time on a ferry or train shuttle. By the way, the time on a combined transport is no longer considered as driving time but as waiting time, respectively as break or rest time.
Please note that the regulations for working hours and so the new parameters could be considered in the method ‘calculateRoutePost’. To keep the GET method ‘calculateRoute’ simple, the more complex parameters like working hours presets, service times or the work logbook are only in the post method available.
To get more detailed information please visit the related concept – or try it out with our code sample.
To keep yourself updated about releases and news you can use the subscribe button at the top of the page. If you got any question do not hesitate to get in contact.