If you have a large number of shifts, you can choose to import them using a comma delimited CSV format import file. You can also export shifts created in the Scenarios user interface in the same format, for backup purposes.
Note
When you create breaks on a route, or assign jobs or depots to a route, there are limitations that you must consider regarding the maximum number that can be used on a single route. For more information about these limitations, see the Route and Job Limitations page.
To import a shifts file:
-
Click the Settings button
, or click the highlighted scenario name, and then click the Scenario Settings option in the drop-down menu.
-
On the Scenario Settings dialog box, select the Shifts tab.
-
Click the More button
and select the Import Shifts option.
-
Drag and drop the CSV format file from its saved location into the dialog box. Alternatively, click Choose File, browse to the file on your computer, select it, and then click Open.
-
Click Manage Mappings. The Manage Mappings dialog box opens. From here you can use one of the following methods to map the columns in your import file to the columns in the Shifts list:
-
If you have used the column naming conventions described in the shift import file format table below, you can click Auto Map and the columns in your import file are mapped to the correct shift values automatically. You can use the Sort button to toggle between sorting the columns on the left alphabetically or in the order they appear in the file.
-
If you have previously saved a JSON file containing the column mappings, you can click Load to use the saved mappings.
-
If your import file uses your own custom column names, follow these steps:
-
Click a column name in the left panel, and then click the right-facing arrow
.
-
Select the field in the right panel, and click Edit Mapping.
-
Select the field that matches the values contained in the import column.
-
Click OK.
Repeat this process for each column in your import file.
-
-
-
(Optional) When you have mapped your columns from the file to the Shifts list, you can perform any of the following actions:
-
Click on the left-facing arrow
to remove the selected field from the Shifts list.
-
Click Edit Mapping to change the mapping for the selected field.
-
Click Clear to clear all mappings you have made and start over.
-
Click Download to save the current mappings so that you can reuse them another time.
-
Click the Settings button
to select the formatting to use for dates.
-
-
When you have finished mapping all your columns from the import file to the Shifts list, click OK to complete the import.
Your driver import CSV files can contain some or all of the following columns:
Column Name |
Value |
---|---|
shift.id |
The unique ID of the shift. |
shift.name |
The name of the shift. |
shift.start_time |
The start time of the shift. |
shift.end_time |
The end time of the shift. |
shift.max_driving_time |
The maximum driving time permitted during this shift. |
shift.break.name |
The name of a break within the shift. |
shift.break.earliest_start |
The earliest start time of a break that is within the shift. |
shift.break.latest_start |
The latest start time of a break that is within the shift. |
shift.break.length |
The length of a break that is within the shift. |
shift.optimize_start_time |
Whether to optimize the start time of the shift. |
shift.normal_working_time |
The normal working hours that are permitted within the shift. |
shift.max_working_time |
The maximum working hours, including overtime hours, that are permitted within the shift. |
shift.breaks_relative_to_start |
Whether breaks in the shift are relative to the start time of the shift. |
shift.enable_start_stem_time |
Whether to include the time from the start location to the first job in the route calculations for the shift. |
shift.enable_end_stem_time |
Whether to include the time from the last job to the end location in the route calculations for the shift. |
shift.break.id |
The unique identifier for a break within the shift. |
shift.custom |
Custom attributes that apply to the shift. |
To export a shifts file:
-
Click the Settings button
, or click the highlighted scenario name, and then click the Scenario Settings option in the drop-down menu.
-
On the Scenario Settings dialog box, select the Shifts tab.
-
Select the check box beside each shift you want to export in the grid, click the More button
in the upper right corner, and then select the Export Shifts option in the menu that opens.
-
Click Choose Columns and select the columns that you want to export. By default all columns are selected. Click Export.
-
The CSV format export file is saved to the default download location on your computer.
Comments
0 comments
Please sign in to leave a comment.