This Function shall be capable of providing the following facilities:<br/><br/>(1) The ability to provide facilities that enable suitable rest areas to be identified along the route included in a Vehicle Trip Plan the use of which will enable Freight Vehicle Drivers to comply with the relevant European Working Time Directive(s).<br/>(2) The ability to assume that these rest areas are part of what are called "service areas" managed by a Parking Operator using other functionality and shall have to be used in order that Freight Vehicle Drivers can comply with the relevant European Working Time Directive(s).<br/>(3) The ability to re-send the trip plan back to the Prepare and Revise Trip Plans function for it to be updated with a revised route and ETA(s).<br/>
(a) continuously monitor for receipt of the trip plan with rest area needed data flow from the Check for Rest Area Requirement function;<br/>(b) when the data flow in (a) is received, check to see if rest areas need to be reserved by calculating the expected journey times between origin, and intermediate stopping points and the destination;<br/>(c) as a result of (b) calculate the location(s) of the Freight Vehicle at the point(s) in time when the Freight Vehicle Driver is expected to exceed the maximum number of continuous hours that can be worked in order to comply with the relevant European Working Time Directive(s);<br/>(d) send a request to the Manage Rest Area Usage function requesting details of the locations of all rest areas in the rest area parking request data flow;<br/>(e) when the response to (d) is received from the Manage Rest Area Usage function in the rest area parking response data flow, compare the rest area location(s) it contains with the result of (c);<br/>(f) identify the suitable rest areas, i.e. closest to the route of the trip plan, in (e) and send the information about them to the Freight Vehicle Driver in the rest area service details data flow;<br/>(g) when the data flow rest area details response is received as a result of (f) check for acceptance and if found add extra way points to the trip plan;<br/>(h) if the response in (g) is rejection, repeat (d) to (g);<br/>(i) when (g) is complete, ask the Freight Vehicle Driver if the parking places are to be booked in the selected rest areas in the rest area booking needed data flow;<br/>(j) when the data flow rest area booking response is received, if the answer is YES use the make rest area booking data flow to pass details of the selected rest areas to the Book Rest Area Places function;<br/>(k) if in (j) the answer is NO, then sent the trip plan with the added way points produced in (g) to the Manage Use of Un/loading Zones function in the trip plan with un/loading needed data flow;<br/>(l) if in (g) acceptance is not found, send a message to the Freight Vehicle Driver indicating that they will need to revise the trip plan in order to comply with working time directive in the new trip plan needed data flow and send the trip plan back to the Prepare and Revise Trip Plans function in the new rest areas data flow;<br/>(m) if the select new rest areas data flow is received from the Book Suitable Rest Area Places function, repeat (d) to (k).<br/><br/>Note that if the use of the identified rest areas is accepted by the Freight Vehicle Driver, the trip plan is not sent back for re-calculation. This will be done once the need to use any Un/loading Zones has been investigated by the Manage Use of Un/loading Zones function.<br/>