Overnight routes enable Drivers /Agents to carry out their Tasks during nighttime hours.
In eLogii, any route that continues past midnight or begins after midnight is classified as an overnight route. For example, a route starting at 20:00 and finishing at 04:00 the next day, or one starting in the early hours after midnight and ending later in the day, would both be treated as overnight routes.
Overnight Route Setup
To configure overnight routes, you’ll need to specify which Drivers/Agents are assigned to work during nighttime hours by adjusting their schedules.
You can do this in 3 ways:
Manual schedule setup from eLogii
Within eLogii’s Driver section, users can easily adjust schedules by selecting a single Driver/Agent to edit individually, or by choosing multiple Drivers/Agents at once and applying the Edit Schedule action from the Actions menu.
When setting up the schedule, pick any time during the day when you want your Drivers to start their work. Once the starting time has been set, pick any end time that's under the Next Day section of the time picker.
If your Drivers are working overnight shifts multiple days of the week, make sure that their schedule is set accordingly, with no time overlaps between days.
Click Save to apply your settings.
Overnight schedule setup through CSV import
Whether you are importing Drivers/Agents and their schedules for the first time or updating existing ones, the fields that need to be populated are the same.
For overnight schedules, the time input is a bit different than the regular schedule since it needs to start during the current day and end the next day.
To indicate that an end time falls on the following day in eLogii, simply add the number of hours past midnight to 24 (since 24 indicates midnight). For example, a schedule that begins at 20:00 (8 PM) and ends at 04:00 the next day should be entered as 20:00–28:00.
This is an example of how it would look in the CSV sheet (the example shows a schedule update):
For more information on importing Drivers and their schedules, check out our guide on Driver data fields.
Overnight schedule setup through API
Setting up the overnight schedule through API is quite similar to CSV import. The only difference is that time should be in minutes rather than hours.
To indicate that the end of the schedule falls on the second day, add the number of minutes that are past midnight to 1440(which indicates midnight in minutes).
For example: A schedule that begins at 8:00 am and ends at 9:30 am the next day will be - start: 480, end: 2010
Sample payload snippet:
"schedule": {
"Mon": {
"timeWindows": [
{
"start": 300,
"end": 2010
}
],
"breaks": []
},
"Tue": {
"timeWindows": [
{
"start": 480,
"end": 2010
}
],
"breaks": []
},
"Wed": {
"timeWindows": [
{
"start": 480,
"end": 2010
}
]
}
Configuration options for overnight work
To ensure a seamless user experience within the eLogii mobile app for overnight routes, we recommend enabling the Enable overnight work option in Configuration ⇒ Driver app.
This ensures that overnight routes will be visible to Drivers, even in situations when you have options such as "Prevent drivers from starting tasks for tomorrow." Even though overnight Tasks are technically happening during the next day, they will still be visible to Drivers.
Just as regular routes, overnight routes, and schedules can be used in combination with any desired functionality of eLogii.