Combine driver breaks with EV recharging
Use the canSyncWithCharging option to let drivers take a mandatory rest time while the electric vehicle (EV) recharges, so that the break does not add extra time to the tour.
For example, a courier in Berlin must take a 45-minute break after every four hours of work, and the van must also visit a charging station during the shift. Without synchronization, the driver waits for the van to charge and then stops again for the break. With canSyncWithCharging, the service can schedule the break during the charging stop and use that time for both purposes, keeping the tour duration as efficient as possible.
NoteThis is an ALPHA feature, which means it is new or experimental and under active development. Use alpha features for testing and feedback. They can change significantly or might not become generally available. For more information, see Explore experimental features.
Understand break and recharge synchronization
When a problem includes both restTimes and EV charging, the service treats breaks and charging stops as separate activities by default. Each one adds its own time to the tour.
When you set canSyncWithCharging to true on a rest time, the service can take that break concurrently with charging. The driver rests while the vehicle charges, and the break time and charging time overlap instead of adding up. This approach can shorten the tour and reduce time-based costs.
The canSyncWithCharging option has these characteristics:
- You set it on a
fixedDurationrest time, infleet.types.shifts.restTimes.workingorfleet.types.shifts.restTimes.driving. - The
canSyncWithChargingoption is boolean. If you omit it, the service does not synchronize the break with charging. - This option requires the
breakRechargeSyncexperimental flag. Because the option builds onrestTimesand EV charging, also enable therestTimesandrechargesflags, as in the example in this article. - The
intervalandbreakDurationsettings of the rest time continue to apply irrespective of whether thecanSyncWithChargingoption value is set totrueorfalse.
Important
A
workinginterval counts driving and other work, such as serving jobs. Adrivinginterval counts only active driving. SettingcanSyncWithChargingtotrueallows either type of rest time to overlap with charging. For more information, see Incorporate rest times.If you enable
canSyncWithChargingon both working and driving rest time rules, the solution reports a synchronized break asworkingRestTime, even when the driving rest time rule triggers it. The activity type does not identify which rule caused the break.When a break overlaps with a recharge,
statistic.timesreports the break and charging durations separately, whilestatistic.durationcounts the overlap once. As a result, the sum of the values instatistic.timescan exceedstatistic.duration.
Enable synchronization
To enable synchronization, complete the following steps:
- Add
restTimes,recharges, andbreakRechargeSynctoconfiguration.experimentalFeatures. - Configure charging for the EV fleet using distance-based or consumption-based charging, and list the stations in
plan.shared.chargingStations. For distance-based charging, setcharging.maxDistanceon the vehicle type. For more information, see Plan efficient routes for EV fleets. - Define a
fixedDurationrest time in the shift, and setcanSyncWithChargingtotrue.
This snippet configures a working rest time that drivers can take during charging:
{
"restTimes": {
"working": {
"type": "fixedDuration",
"interval": 14400,
"breakDuration": 2700,
"canSyncWithCharging": true
}
}
}In this configuration, the driver needs a 45-minute (2700 seconds) break at least every four hours (14400 seconds) of work. The service can schedule it during a charging stop.
Compare plans with and without synchronization
To demonstrate the possible impact of the canSyncWithCharging option on the resulting solution, the examples compare two scenarios: one with canSyncWithCharging set to true, and one without it.
Except for the canSyncWithCharging setting, both scenario plans have identical configuration:
- 24 deliveries in Berlin for one electric van
- The van starts and ends its shift at the same depot
- The vehicle can travel 60 km before it must charge, and a charging station in Treptow charges the van in one hour
- The van driver has a working rest time of 45 minutes every four hours
Problem without synchronization
The baseline problem does not enable the canSyncWithCharging option. The following JSON file shows the full problem setting:
Click to expand/collapse the sample JSON
{
"configuration": {
"experimentalFeatures": [
"restTimes",
"recharges"
]
},
"fleet": {
"types": [
{
"profile": "van",
"amount": 1,
"capacity": [
100
],
"costs": {
"time": 0.08,
"distance": 0.01,
"fixed": 50
},
"id": "e_van",
"shifts": [
{
"start": {
"location": {
"lat": 52.5253,
"lng": 13.3694
},
"time": "2026-03-10T08:00:00Z"
},
"end": {
"location": {
"lat": 52.5253,
"lng": 13.3694
},
"time": "2026-03-10T15:30:00Z"
},
"restTimes": {
"working": {
"type": "fixedDuration",
"interval": 14400,
"breakDuration": 2700
}
}
}
],
"charging": {
"maxDistance": 60000
}
}
],
"profiles": [
{
"name": "van",
"type": "car"
}
]
},
"plan": {
"jobs": [
{
"id": "parcel_friedrichshain",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.5155,
"lng": 13.454
}
}
],
"demand": [
4
]
}
]
}
},
{
"id": "parcel_lichtenberg",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.515,
"lng": 13.499
}
}
],
"demand": [
2
]
}
]
}
},
{
"id": "parcel_neukoelln",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.481,
"lng": 13.435
}
}
],
"demand": [
4
]
}
]
}
},
{
"id": "parcel_charlottenburg",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.516,
"lng": 13.305
}
}
],
"demand": [
3
]
}
]
}
},
{
"id": "parcel_pankow",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.569,
"lng": 13.402
}
}
],
"demand": [
4
]
}
]
}
},
{
"id": "parcel_weissensee",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.55694,
"lng": 13.46597
}
}
],
"demand": [
2
]
}
]
}
},
{
"id": "parcel_treptow",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.493,
"lng": 13.458
}
}
],
"demand": [
5
]
}
]
}
},
{
"id": "parcel_wedding",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.549,
"lng": 13.365
}
}
],
"demand": [
4
]
}
]
}
},
{
"id": "parcel_prenzlauer_berg_sued",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.539,
"lng": 13.424
}
}
],
"demand": [
4
]
}
]
}
},
{
"id": "parcel_friedrichshain_ost",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.5105,
"lng": 13.475
}
}
],
"demand": [
2
]
}
]
}
},
{
"id": "parcel_hohenschoenhausen",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.54,
"lng": 13.5
}
}
],
"demand": [
2
]
}
]
}
},
{
"id": "parcel_prenzlauer_berg_nord",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.545,
"lng": 13.425
}
}
],
"demand": [
3
]
}
]
}
},
{
"id": "parcel_gesundbrunnen",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.549,
"lng": 13.388
}
}
],
"demand": [
2
]
}
]
}
},
{
"id": "parcel_jungfernheide",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.53,
"lng": 13.33
}
}
],
"demand": [
3
]
}
]
}
},
{
"id": "bulky_parcel_lichtenberg",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 1500,
"location": {
"lat": 52.515,
"lng": 13.499
},
"times": [
[
"2026-03-10T11:00:00Z",
"2026-03-10T15:00:00Z"
]
]
}
],
"demand": [
6
]
}
]
}
},
{
"id": "bulky_parcel_weissensee",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 1500,
"location": {
"lat": 52.55694,
"lng": 13.46597
},
"times": [
[
"2026-03-10T11:00:00Z",
"2026-03-10T15:00:00Z"
]
]
}
],
"demand": [
6
]
}
]
}
},
{
"id": "bulky_parcel_pankow",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 1500,
"location": {
"lat": 52.569,
"lng": 13.402
},
"times": [
[
"2026-03-10T11:00:00Z",
"2026-03-10T15:00:00Z"
]
]
}
],
"demand": [
6
]
}
]
}
},
{
"id": "bulky_parcel_wedding",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 1500,
"location": {
"lat": 52.549,
"lng": 13.365
},
"times": [
[
"2026-03-10T11:00:00Z",
"2026-03-10T14:45:00Z"
]
]
}
],
"demand": [
6
]
}
]
}
},
{
"id": "parcel_westend",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.512,
"lng": 13.268
}
}
],
"demand": [
3
]
}
]
}
},
{
"id": "parcel_dahlem",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.45,
"lng": 13.285
}
}
],
"demand": [
3
]
}
]
}
},
{
"id": "parcel_lichterfelde",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.428,
"lng": 13.313
}
}
],
"demand": [
2
]
}
]
}
},
{
"id": "parcel_steglitz",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.456,
"lng": 13.332
}
}
],
"demand": [
5
]
}
]
}
},
{
"id": "parcel_mariendorf",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.438,
"lng": 13.388
}
}
],
"demand": [
3
]
}
]
}
},
{
"id": "parcel_britz",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.445,
"lng": 13.433
}
}
],
"demand": [
2
]
}
]
}
}
],
"shared": {
"chargingStations": [
{
"id": "charger_treptow",
"location": {
"lat": 52.489,
"lng": 13.446
},
"vehicleTypeToDuration": {
"e_van": 3600
}
}
]
}
}
}Solution interpretation: no synchronization
Because this example does not enable synchronization, the rest break is a separate stop from the recharge stops.
In this solution, the van recharges from 10:09 to 11:09, and the driver takes the 45-minute break later, from 12:00 to 12:45. One delivery, bulky_parcel_wedding, is unassigned because of a time-window violation:
{
"unassigned": [
{
"jobId": "bulky_parcel_wedding",
"reasons": [
{
"code": "TIME_WINDOW_CONSTRAINT",
"description": "cannot be assigned due to violation of time window"
}
]
}
]
}The following figure visualizes the tour plan section where the recharge break and the working rest time are scheduled separately:
The following section shows the complete solution JSON:
Click to expand/collapse the sample JSON
{
"statistic": {
"cost": 2981.0200000000004,
"distance": 78878,
"duration": 26778,
"times": {
"break": 2700,
"driving": 9978,
"serving": 10500,
"stopping": 0,
"waiting": 0,
"charging": 3600
},
"costs": {
"distance": 788.78,
"fixed": 50,
"time": 2142.2400000000002
},
"intraStopDistance": 0
},
"tours": [
{
"shiftIndex": 0,
"statistic": {
"cost": 2981.0200000000004,
"distance": 78878,
"duration": 26778,
"times": {
"break": 2700,
"driving": 9978,
"serving": 10500,
"stopping": 0,
"waiting": 0,
"charging": 3600
},
"costs": {
"distance": 788.78,
"fixed": 50,
"time": 2142.2400000000002
},
"intraStopDistance": 0
},
"stops": [
{
"activities": [
{
"jobId": "departure",
"type": "departure",
"location": {
"lat": 52.5253,
"lng": 13.3694
},
"time": {
"arrival": "2026-03-10T08:00:00Z",
"start": "2026-03-10T08:00:00Z",
"end": "2026-03-10T08:00:00Z"
}
}
],
"load": [
80
],
"time": {
"arrival": "2026-03-10T08:00:00Z",
"departure": "2026-03-10T08:00:00Z"
},
"distance": 0,
"location": {
"lat": 52.5253,
"lng": 13.3694
}
},
{
"activities": [
{
"jobId": "parcel_jungfernheide",
"type": "delivery",
"location": {
"lat": 52.53,
"lng": 13.33
},
"time": {
"arrival": "2026-03-10T08:10:52Z",
"start": "2026-03-10T08:10:52Z",
"end": "2026-03-10T08:15:52Z"
}
}
],
"load": [
77
],
"time": {
"arrival": "2026-03-10T08:10:52Z",
"departure": "2026-03-10T08:15:52Z"
},
"distance": 3508,
"location": {
"lat": 52.53,
"lng": 13.33
}
},
{
"activities": [
{
"jobId": "parcel_charlottenburg",
"type": "delivery",
"location": {
"lat": 52.516,
"lng": 13.305
},
"time": {
"arrival": "2026-03-10T08:23:48Z",
"start": "2026-03-10T08:23:48Z",
"end": "2026-03-10T08:28:48Z"
}
}
],
"load": [
74
],
"time": {
"arrival": "2026-03-10T08:23:48Z",
"departure": "2026-03-10T08:28:48Z"
},
"distance": 7066,
"location": {
"lat": 52.516,
"lng": 13.305
}
},
{
"activities": [
{
"jobId": "parcel_westend",
"type": "delivery",
"location": {
"lat": 52.512,
"lng": 13.268
},
"time": {
"arrival": "2026-03-10T08:35:45Z",
"start": "2026-03-10T08:35:45Z",
"end": "2026-03-10T08:40:45Z"
}
}
],
"load": [
71
],
"time": {
"arrival": "2026-03-10T08:35:45Z",
"departure": "2026-03-10T08:40:45Z"
},
"distance": 10294,
"location": {
"lat": 52.512,
"lng": 13.268
}
},
{
"activities": [
{
"jobId": "parcel_dahlem",
"type": "delivery",
"location": {
"lat": 52.45,
"lng": 13.285
},
"time": {
"arrival": "2026-03-10T08:53:25Z",
"start": "2026-03-10T08:53:25Z",
"end": "2026-03-10T08:58:25Z"
}
}
],
"load": [
68
],
"time": {
"arrival": "2026-03-10T08:53:25Z",
"departure": "2026-03-10T08:58:25Z"
},
"distance": 18264,
"location": {
"lat": 52.45,
"lng": 13.285
}
},
{
"activities": [
{
"jobId": "parcel_lichterfelde",
"type": "delivery",
"location": {
"lat": 52.428,
"lng": 13.313
},
"time": {
"arrival": "2026-03-10T09:04:36Z",
"start": "2026-03-10T09:04:36Z",
"end": "2026-03-10T09:09:36Z"
}
}
],
"load": [
66
],
"time": {
"arrival": "2026-03-10T09:04:36Z",
"departure": "2026-03-10T09:09:36Z"
},
"distance": 21744,
"location": {
"lat": 52.428,
"lng": 13.313
}
},
{
"activities": [
{
"jobId": "parcel_steglitz",
"type": "delivery",
"location": {
"lat": 52.456,
"lng": 13.332
},
"time": {
"arrival": "2026-03-10T09:17:35Z",
"start": "2026-03-10T09:17:35Z",
"end": "2026-03-10T09:22:35Z"
}
}
],
"load": [
61
],
"time": {
"arrival": "2026-03-10T09:17:35Z",
"departure": "2026-03-10T09:22:35Z"
},
"distance": 25891,
"location": {
"lat": 52.456,
"lng": 13.332
}
},
{
"activities": [
{
"jobId": "parcel_mariendorf",
"type": "delivery",
"location": {
"lat": 52.438,
"lng": 13.388
},
"time": {
"arrival": "2026-03-10T09:33:24Z",
"start": "2026-03-10T09:33:24Z",
"end": "2026-03-10T09:38:24Z"
}
}
],
"load": [
58
],
"time": {
"arrival": "2026-03-10T09:33:24Z",
"departure": "2026-03-10T09:38:24Z"
},
"distance": 31734,
"location": {
"lat": 52.438,
"lng": 13.388
}
},
{
"activities": [
{
"jobId": "parcel_britz",
"type": "delivery",
"location": {
"lat": 52.445,
"lng": 13.433
},
"time": {
"arrival": "2026-03-10T09:43:49Z",
"start": "2026-03-10T09:43:49Z",
"end": "2026-03-10T09:48:49Z"
}
}
],
"load": [
56
],
"time": {
"arrival": "2026-03-10T09:43:49Z",
"departure": "2026-03-10T09:48:49Z"
},
"distance": 35235,
"location": {
"lat": 52.445,
"lng": 13.433
}
},
{
"activities": [
{
"jobId": "parcel_neukoelln",
"type": "delivery",
"location": {
"lat": 52.481,
"lng": 13.435
},
"time": {
"arrival": "2026-03-10T09:59:52Z",
"start": "2026-03-10T09:59:52Z",
"end": "2026-03-10T10:04:52Z"
}
}
],
"load": [
52
],
"time": {
"arrival": "2026-03-10T09:59:52Z",
"departure": "2026-03-10T10:04:52Z"
},
"distance": 40375,
"location": {
"lat": 52.481,
"lng": 13.435
}
},
{
"activities": [
{
"jobId": "charger_treptow",
"type": "recharge",
"location": {
"lat": 52.489,
"lng": 13.446
},
"time": {
"arrival": "2026-03-10T10:09:04Z",
"start": "2026-03-10T10:09:04Z",
"end": "2026-03-10T11:09:04Z"
}
}
],
"load": [
52
],
"time": {
"arrival": "2026-03-10T10:09:04Z",
"departure": "2026-03-10T11:09:04Z"
},
"distance": 41900,
"location": {
"lat": 52.489,
"lng": 13.446
}
},
{
"activities": [
{
"jobId": "parcel_treptow",
"type": "delivery",
"location": {
"lat": 52.493,
"lng": 13.458
},
"time": {
"arrival": "2026-03-10T11:14:49Z",
"start": "2026-03-10T11:14:49Z",
"end": "2026-03-10T11:19:49Z"
}
}
],
"load": [
47
],
"time": {
"arrival": "2026-03-10T11:14:49Z",
"departure": "2026-03-10T11:19:49Z"
},
"distance": 43873,
"location": {
"lat": 52.493,
"lng": 13.458
}
},
{
"activities": [
{
"jobId": "parcel_friedrichshain",
"type": "delivery",
"location": {
"lat": 52.5155,
"lng": 13.454
},
"time": {
"arrival": "2026-03-10T11:27:16Z",
"start": "2026-03-10T11:27:16Z",
"end": "2026-03-10T11:32:16Z"
}
}
],
"load": [
43
],
"time": {
"arrival": "2026-03-10T11:27:16Z",
"departure": "2026-03-10T11:32:16Z"
},
"distance": 47217,
"location": {
"lat": 52.5155,
"lng": 13.454
}
},
{
"activities": [
{
"jobId": "parcel_friedrichshain_ost",
"type": "delivery",
"location": {
"lat": 52.5105,
"lng": 13.475
},
"time": {
"arrival": "2026-03-10T11:35:57Z",
"start": "2026-03-10T11:35:57Z",
"end": "2026-03-10T11:40:57Z"
}
}
],
"load": [
41
],
"time": {
"arrival": "2026-03-10T11:35:57Z",
"departure": "2026-03-10T11:40:57Z"
},
"distance": 49164,
"location": {
"lat": 52.5105,
"lng": 13.475
}
},
{
"activities": [
{
"jobId": "bulky_parcel_lichtenberg",
"type": "delivery",
"location": {
"lat": 52.515,
"lng": 13.499
},
"time": {
"arrival": "2026-03-10T11:45:38Z",
"start": "2026-03-10T11:45:38Z",
"end": "2026-03-10T12:55:38Z"
}
},
{
"jobId": "workingRestTime",
"type": "workingRestTime",
"location": {
"lat": 52.515,
"lng": 13.499
},
"time": {
"start": "2026-03-10T12:00:00Z",
"end": "2026-03-10T12:45:00Z"
}
},
{
"jobId": "parcel_lichtenberg",
"type": "delivery",
"location": {
"lat": 52.515,
"lng": 13.499
},
"time": {
"arrival": "2026-03-10T12:55:38Z",
"start": "2026-03-10T12:55:38Z",
"end": "2026-03-10T13:00:38Z"
}
}
],
"load": [
33
],
"time": {
"arrival": "2026-03-10T11:45:38Z",
"departure": "2026-03-10T13:00:38Z"
},
"distance": 51481,
"location": {
"lat": 52.515,
"lng": 13.499
}
},
{
"activities": [
{
"jobId": "parcel_hohenschoenhausen",
"type": "delivery",
"location": {
"lat": 52.54,
"lng": 13.5
},
"time": {
"arrival": "2026-03-10T13:05:51Z",
"start": "2026-03-10T13:05:51Z",
"end": "2026-03-10T13:10:51Z"
}
}
],
"load": [
31
],
"time": {
"arrival": "2026-03-10T13:05:51Z",
"departure": "2026-03-10T13:10:51Z"
},
"distance": 54311,
"location": {
"lat": 52.54,
"lng": 13.5
}
},
{
"activities": [
{
"jobId": "parcel_weissensee",
"type": "delivery",
"location": {
"lat": 52.55694,
"lng": 13.46597
},
"time": {
"arrival": "2026-03-10T13:22:13Z",
"start": "2026-03-10T13:22:13Z",
"end": "2026-03-10T13:27:13Z"
}
},
{
"jobId": "bulky_parcel_weissensee",
"type": "delivery",
"location": {
"lat": 52.55694,
"lng": 13.46597
},
"time": {
"arrival": "2026-03-10T13:27:13Z",
"start": "2026-03-10T13:27:13Z",
"end": "2026-03-10T13:52:13Z"
}
}
],
"load": [
23
],
"time": {
"arrival": "2026-03-10T13:22:13Z",
"departure": "2026-03-10T13:52:13Z"
},
"distance": 59473,
"location": {
"lat": 52.55694,
"lng": 13.46597
}
},
{
"activities": [
{
"jobId": "parcel_prenzlauer_berg_nord",
"type": "delivery",
"location": {
"lat": 52.545,
"lng": 13.425
},
"time": {
"arrival": "2026-03-10T14:01:50Z",
"start": "2026-03-10T14:01:50Z",
"end": "2026-03-10T14:06:50Z"
}
}
],
"load": [
20
],
"time": {
"arrival": "2026-03-10T14:01:50Z",
"departure": "2026-03-10T14:06:50Z"
},
"distance": 63586,
"location": {
"lat": 52.545,
"lng": 13.425
}
},
{
"activities": [
{
"jobId": "parcel_prenzlauer_berg_sued",
"type": "delivery",
"location": {
"lat": 52.539,
"lng": 13.424
},
"time": {
"arrival": "2026-03-10T14:08:21Z",
"start": "2026-03-10T14:08:21Z",
"end": "2026-03-10T14:13:21Z"
}
}
],
"load": [
16
],
"time": {
"arrival": "2026-03-10T14:08:21Z",
"departure": "2026-03-10T14:13:21Z"
},
"distance": 64324,
"location": {
"lat": 52.539,
"lng": 13.424
}
},
{
"activities": [
{
"jobId": "bulky_parcel_pankow",
"type": "delivery",
"location": {
"lat": 52.569,
"lng": 13.402
},
"time": {
"arrival": "2026-03-10T14:23:16Z",
"start": "2026-03-10T14:23:16Z",
"end": "2026-03-10T14:48:16Z"
}
},
{
"jobId": "parcel_pankow",
"type": "delivery",
"location": {
"lat": 52.569,
"lng": 13.402
},
"time": {
"arrival": "2026-03-10T14:48:16Z",
"start": "2026-03-10T14:48:16Z",
"end": "2026-03-10T14:53:16Z"
}
}
],
"load": [
6
],
"time": {
"arrival": "2026-03-10T14:23:16Z",
"departure": "2026-03-10T14:53:16Z"
},
"distance": 69508,
"location": {
"lat": 52.569,
"lng": 13.402
}
},
{
"activities": [
{
"jobId": "parcel_gesundbrunnen",
"type": "delivery",
"location": {
"lat": 52.549,
"lng": 13.388
},
"time": {
"arrival": "2026-03-10T15:00:43Z",
"start": "2026-03-10T15:00:43Z",
"end": "2026-03-10T15:05:43Z"
}
}
],
"load": [
4
],
"time": {
"arrival": "2026-03-10T15:00:43Z",
"departure": "2026-03-10T15:05:43Z"
},
"distance": 72672,
"location": {
"lat": 52.549,
"lng": 13.388
}
},
{
"activities": [
{
"jobId": "parcel_wedding",
"type": "delivery",
"location": {
"lat": 52.549,
"lng": 13.365
},
"time": {
"arrival": "2026-03-10T15:11:11Z",
"start": "2026-03-10T15:11:11Z",
"end": "2026-03-10T15:16:11Z"
}
}
],
"load": [
0
],
"time": {
"arrival": "2026-03-10T15:11:11Z",
"departure": "2026-03-10T15:16:11Z"
},
"distance": 74825,
"location": {
"lat": 52.549,
"lng": 13.365
}
},
{
"activities": [
{
"jobId": "arrival",
"type": "arrival",
"location": {
"lat": 52.5253,
"lng": 13.3694
},
"time": {
"arrival": "2026-03-10T15:26:18Z",
"start": "2026-03-10T15:26:18Z",
"end": "2026-03-10T15:26:18Z"
}
}
],
"load": [
0
],
"time": {
"arrival": "2026-03-10T15:26:18Z",
"departure": "2026-03-10T15:26:18Z"
},
"distance": 78878,
"location": {
"lat": 52.5253,
"lng": 13.3694
}
}
],
"typeId": "e_van",
"vehicleId": "e_van_1"
}
],
"unassigned": [
{
"jobId": "bulky_parcel_wedding",
"reasons": [
{
"code": "TIME_WINDOW_CONSTRAINT",
"description": "cannot be assigned due to violation of time window"
}
]
}
]
}Problem with synchronization enabled
The problem setup in this case is identical to the previous one with the exception that now the problem enables the canSyncWithCharging option. In this way the optimization algorithm might find a more efficient solution by scheduling simultaneous recharge and working breaks.
This JSON shows the complete problem settings, including the canSyncWithCharging option:
Click to expand/collapse the sample JSON
{
"configuration": {
"experimentalFeatures": [
"restTimes",
"recharges",
"breakRechargeSync"
]
},
"fleet": {
"types": [
{
"profile": "van",
"amount": 1,
"capacity": [
100
],
"costs": {
"time": 0.08,
"distance": 0.01,
"fixed": 50
},
"id": "e_van",
"shifts": [
{
"start": {
"location": {
"lat": 52.5253,
"lng": 13.3694
},
"time": "2026-03-10T08:00:00Z"
},
"end": {
"location": {
"lat": 52.5253,
"lng": 13.3694
},
"time": "2026-03-10T15:30:00Z"
},
"restTimes": {
"working": {
"type": "fixedDuration",
"interval": 14400,
"breakDuration": 2700,
"canSyncWithCharging": true
}
}
}
],
"charging": {
"maxDistance": 60000
}
}
],
"profiles": [
{
"name": "van",
"type": "car"
}
]
},
"plan": {
"jobs": [
{
"id": "parcel_friedrichshain",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.5155,
"lng": 13.454
}
}
],
"demand": [
4
]
}
]
}
},
{
"id": "parcel_lichtenberg",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.515,
"lng": 13.499
}
}
],
"demand": [
2
]
}
]
}
},
{
"id": "parcel_neukoelln",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.481,
"lng": 13.435
}
}
],
"demand": [
4
]
}
]
}
},
{
"id": "parcel_charlottenburg",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.516,
"lng": 13.305
}
}
],
"demand": [
3
]
}
]
}
},
{
"id": "parcel_pankow",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.569,
"lng": 13.402
}
}
],
"demand": [
4
]
}
]
}
},
{
"id": "parcel_weissensee",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.55694,
"lng": 13.46597
}
}
],
"demand": [
2
]
}
]
}
},
{
"id": "parcel_treptow",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.493,
"lng": 13.458
}
}
],
"demand": [
5
]
}
]
}
},
{
"id": "parcel_wedding",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.549,
"lng": 13.365
}
}
],
"demand": [
4
]
}
]
}
},
{
"id": "parcel_prenzlauer_berg_sued",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.539,
"lng": 13.424
}
}
],
"demand": [
4
]
}
]
}
},
{
"id": "parcel_friedrichshain_ost",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.5105,
"lng": 13.475
}
}
],
"demand": [
2
]
}
]
}
},
{
"id": "parcel_hohenschoenhausen",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.54,
"lng": 13.5
}
}
],
"demand": [
2
]
}
]
}
},
{
"id": "parcel_prenzlauer_berg_nord",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.545,
"lng": 13.425
}
}
],
"demand": [
3
]
}
]
}
},
{
"id": "parcel_gesundbrunnen",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.549,
"lng": 13.388
}
}
],
"demand": [
2
]
}
]
}
},
{
"id": "parcel_jungfernheide",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.53,
"lng": 13.33
}
}
],
"demand": [
3
]
}
]
}
},
{
"id": "bulky_parcel_lichtenberg",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 1500,
"location": {
"lat": 52.515,
"lng": 13.499
},
"times": [
[
"2026-03-10T11:00:00Z",
"2026-03-10T15:00:00Z"
]
]
}
],
"demand": [
6
]
}
]
}
},
{
"id": "bulky_parcel_weissensee",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 1500,
"location": {
"lat": 52.55694,
"lng": 13.46597
},
"times": [
[
"2026-03-10T11:00:00Z",
"2026-03-10T15:00:00Z"
]
]
}
],
"demand": [
6
]
}
]
}
},
{
"id": "bulky_parcel_pankow",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 1500,
"location": {
"lat": 52.569,
"lng": 13.402
},
"times": [
[
"2026-03-10T11:00:00Z",
"2026-03-10T15:00:00Z"
]
]
}
],
"demand": [
6
]
}
]
}
},
{
"id": "bulky_parcel_wedding",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 1500,
"location": {
"lat": 52.549,
"lng": 13.365
},
"times": [
[
"2026-03-10T11:00:00Z",
"2026-03-10T14:45:00Z"
]
]
}
],
"demand": [
6
]
}
]
}
},
{
"id": "parcel_westend",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.512,
"lng": 13.268
}
}
],
"demand": [
3
]
}
]
}
},
{
"id": "parcel_dahlem",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.45,
"lng": 13.285
}
}
],
"demand": [
3
]
}
]
}
},
{
"id": "parcel_lichterfelde",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.428,
"lng": 13.313
}
}
],
"demand": [
2
]
}
]
}
},
{
"id": "parcel_steglitz",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.456,
"lng": 13.332
}
}
],
"demand": [
5
]
}
]
}
},
{
"id": "parcel_mariendorf",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.438,
"lng": 13.388
}
}
],
"demand": [
3
]
}
]
}
},
{
"id": "parcel_britz",
"tasks": {
"deliveries": [
{
"places": [
{
"duration": 300,
"location": {
"lat": 52.445,
"lng": 13.433
}
}
],
"demand": [
2
]
}
]
}
}
],
"shared": {
"chargingStations": [
{
"id": "charger_treptow",
"location": {
"lat": 52.489,
"lng": 13.446
},
"vehicleTypeToDuration": {
"e_van": 3600
}
}
]
}
}
}Solution interpretation: with synchronization
As the visualization indicates, the optimization algorithm schedules the rest break during the first recharge stop rather than later as a separate activity. The following snippet shows the resulting recharge stop data:
{
"activities": [
{
"jobId": "treptow_charger",
"type": "recharge",
"location": {
"lat": 52.489,
"lng": 13.446
},
"time": {
"arrival": "2026-03-10T10:09:04Z",
"start": "2026-03-10T10:09:04Z",
"end": "2026-03-10T11:09:04Z"
}
},
{
"jobId": "workingRestTime",
"type": "workingRestTime",
"location": {
"lat": 52.489,
"lng": 13.446
},
"time": {
"start": "2026-03-10T10:24:04Z",
"end": "2026-03-10T11:09:04Z"
}
}
],
"load": [
58
],
"time": {
"arrival": "2026-03-10T10:09:04Z",
"departure": "2026-03-10T11:09:04Z"
},
"distance": 41900,
"location": {
"lat": 52.489,
"lng": 13.446
}
}The following figure showcases the tour plan stop with the concurrent reacharge and working time breaks:
The timeline shows workingRestTime overlapping recharge from 10:24 to 11:09:
---
config:
theme: base
themeVariables:
taskBkgColor: "#e6fbfa"
taskBorderColor: "#2adace"
themeCSS: |
.task0 {
stroke-width: 2px !important;
}
---
gantt
dateFormat YYYY-MM-DDTHH:mm:ss
axisFormat %H:%M
section Activities
⚡ Recharge : 2026-03-10T10:09:04, 2026-03-10T11:09:04
☕ Working rest : 2026-03-10T10:24:04, 2026-03-10T11:09:04
The following section shows the solution JSON file with the full tour:
Click to expand/collapse the sample JSON
{
"statistic": {
"cost": 2885.02,
"distance": 78878,
"duration": 25578,
"times": {
"break": 2700,
"driving": 9978,
"serving": 12000,
"stopping": 0,
"waiting": 0,
"charging": 3600
},
"costs": {
"distance": 788.78,
"fixed": 50,
"time": 2046.24
},
"intraStopDistance": 0
},
"tours": [
{
"shiftIndex": 0,
"statistic": {
"cost": 2885.02,
"distance": 78878,
"duration": 25578,
"times": {
"break": 2700,
"driving": 9978,
"serving": 12000,
"stopping": 0,
"waiting": 0,
"charging": 3600
},
"costs": {
"distance": 788.78,
"fixed": 50,
"time": 2046.24
},
"intraStopDistance": 0
},
"stops": [
{
"activities": [
{
"jobId": "departure",
"type": "departure",
"location": {
"lat": 52.5253,
"lng": 13.3694
},
"time": {
"arrival": "2026-03-10T08:00:00Z",
"start": "2026-03-10T08:00:00Z",
"end": "2026-03-10T08:00:00Z"
}
}
],
"load": [
86
],
"time": {
"arrival": "2026-03-10T08:00:00Z",
"departure": "2026-03-10T08:00:00Z"
},
"distance": 0,
"location": {
"lat": 52.5253,
"lng": 13.3694
}
},
{
"activities": [
{
"jobId": "parcel_jungfernheide",
"type": "delivery",
"location": {
"lat": 52.53,
"lng": 13.33
},
"time": {
"arrival": "2026-03-10T08:10:52Z",
"start": "2026-03-10T08:10:52Z",
"end": "2026-03-10T08:15:52Z"
}
}
],
"load": [
83
],
"time": {
"arrival": "2026-03-10T08:10:52Z",
"departure": "2026-03-10T08:15:52Z"
},
"distance": 3508,
"location": {
"lat": 52.53,
"lng": 13.33
}
},
{
"activities": [
{
"jobId": "parcel_charlottenburg",
"type": "delivery",
"location": {
"lat": 52.516,
"lng": 13.305
},
"time": {
"arrival": "2026-03-10T08:23:48Z",
"start": "2026-03-10T08:23:48Z",
"end": "2026-03-10T08:28:48Z"
}
}
],
"load": [
80
],
"time": {
"arrival": "2026-03-10T08:23:48Z",
"departure": "2026-03-10T08:28:48Z"
},
"distance": 7066,
"location": {
"lat": 52.516,
"lng": 13.305
}
},
{
"activities": [
{
"jobId": "parcel_westend",
"type": "delivery",
"location": {
"lat": 52.512,
"lng": 13.268
},
"time": {
"arrival": "2026-03-10T08:35:45Z",
"start": "2026-03-10T08:35:45Z",
"end": "2026-03-10T08:40:45Z"
}
}
],
"load": [
77
],
"time": {
"arrival": "2026-03-10T08:35:45Z",
"departure": "2026-03-10T08:40:45Z"
},
"distance": 10294,
"location": {
"lat": 52.512,
"lng": 13.268
}
},
{
"activities": [
{
"jobId": "parcel_dahlem",
"type": "delivery",
"location": {
"lat": 52.45,
"lng": 13.285
},
"time": {
"arrival": "2026-03-10T08:53:25Z",
"start": "2026-03-10T08:53:25Z",
"end": "2026-03-10T08:58:25Z"
}
}
],
"load": [
74
],
"time": {
"arrival": "2026-03-10T08:53:25Z",
"departure": "2026-03-10T08:58:25Z"
},
"distance": 18264,
"location": {
"lat": 52.45,
"lng": 13.285
}
},
{
"activities": [
{
"jobId": "parcel_lichterfelde",
"type": "delivery",
"location": {
"lat": 52.428,
"lng": 13.313
},
"time": {
"arrival": "2026-03-10T09:04:36Z",
"start": "2026-03-10T09:04:36Z",
"end": "2026-03-10T09:09:36Z"
}
}
],
"load": [
72
],
"time": {
"arrival": "2026-03-10T09:04:36Z",
"departure": "2026-03-10T09:09:36Z"
},
"distance": 21744,
"location": {
"lat": 52.428,
"lng": 13.313
}
},
{
"activities": [
{
"jobId": "parcel_steglitz",
"type": "delivery",
"location": {
"lat": 52.456,
"lng": 13.332
},
"time": {
"arrival": "2026-03-10T09:17:35Z",
"start": "2026-03-10T09:17:35Z",
"end": "2026-03-10T09:22:35Z"
}
}
],
"load": [
67
],
"time": {
"arrival": "2026-03-10T09:17:35Z",
"departure": "2026-03-10T09:22:35Z"
},
"distance": 25891,
"location": {
"lat": 52.456,
"lng": 13.332
}
},
{
"activities": [
{
"jobId": "parcel_mariendorf",
"type": "delivery",
"location": {
"lat": 52.438,
"lng": 13.388
},
"time": {
"arrival": "2026-03-10T09:33:24Z",
"start": "2026-03-10T09:33:24Z",
"end": "2026-03-10T09:38:24Z"
}
}
],
"load": [
64
],
"time": {
"arrival": "2026-03-10T09:33:24Z",
"departure": "2026-03-10T09:38:24Z"
},
"distance": 31734,
"location": {
"lat": 52.438,
"lng": 13.388
}
},
{
"activities": [
{
"jobId": "parcel_britz",
"type": "delivery",
"location": {
"lat": 52.445,
"lng": 13.433
},
"time": {
"arrival": "2026-03-10T09:43:49Z",
"start": "2026-03-10T09:43:49Z",
"end": "2026-03-10T09:48:49Z"
}
}
],
"load": [
62
],
"time": {
"arrival": "2026-03-10T09:43:49Z",
"departure": "2026-03-10T09:48:49Z"
},
"distance": 35235,
"location": {
"lat": 52.445,
"lng": 13.433
}
},
{
"activities": [
{
"jobId": "parcel_neukoelln",
"type": "delivery",
"location": {
"lat": 52.481,
"lng": 13.435
},
"time": {
"arrival": "2026-03-10T09:59:52Z",
"start": "2026-03-10T09:59:52Z",
"end": "2026-03-10T10:04:52Z"
}
}
],
"load": [
58
],
"time": {
"arrival": "2026-03-10T09:59:52Z",
"departure": "2026-03-10T10:04:52Z"
},
"distance": 40375,
"location": {
"lat": 52.481,
"lng": 13.435
}
},
{
"activities": [
{
"jobId": "charger_treptow",
"type": "recharge",
"location": {
"lat": 52.489,
"lng": 13.446
},
"time": {
"arrival": "2026-03-10T10:09:04Z",
"start": "2026-03-10T10:09:04Z",
"end": "2026-03-10T11:09:04Z"
}
},
{
"jobId": "workingRestTime",
"type": "workingRestTime",
"location": {
"lat": 52.489,
"lng": 13.446
},
"time": {
"start": "2026-03-10T10:24:04Z",
"end": "2026-03-10T11:09:04Z"
}
}
],
"load": [
58
],
"time": {
"arrival": "2026-03-10T10:09:04Z",
"departure": "2026-03-10T11:09:04Z"
},
"distance": 41900,
"location": {
"lat": 52.489,
"lng": 13.446
}
},
{
"activities": [
{
"jobId": "parcel_treptow",
"type": "delivery",
"location": {
"lat": 52.493,
"lng": 13.458
},
"time": {
"arrival": "2026-03-10T11:14:49Z",
"start": "2026-03-10T11:14:49Z",
"end": "2026-03-10T11:19:49Z"
}
}
],
"load": [
53
],
"time": {
"arrival": "2026-03-10T11:14:49Z",
"departure": "2026-03-10T11:19:49Z"
},
"distance": 43873,
"location": {
"lat": 52.493,
"lng": 13.458
}
},
{
"activities": [
{
"jobId": "parcel_friedrichshain",
"type": "delivery",
"location": {
"lat": 52.5155,
"lng": 13.454
},
"time": {
"arrival": "2026-03-10T11:27:16Z",
"start": "2026-03-10T11:27:16Z",
"end": "2026-03-10T11:32:16Z"
}
}
],
"load": [
49
],
"time": {
"arrival": "2026-03-10T11:27:16Z",
"departure": "2026-03-10T11:32:16Z"
},
"distance": 47217,
"location": {
"lat": 52.5155,
"lng": 13.454
}
},
{
"activities": [
{
"jobId": "parcel_friedrichshain_ost",
"type": "delivery",
"location": {
"lat": 52.5105,
"lng": 13.475
},
"time": {
"arrival": "2026-03-10T11:35:57Z",
"start": "2026-03-10T11:35:57Z",
"end": "2026-03-10T11:40:57Z"
}
}
],
"load": [
47
],
"time": {
"arrival": "2026-03-10T11:35:57Z",
"departure": "2026-03-10T11:40:57Z"
},
"distance": 49164,
"location": {
"lat": 52.5105,
"lng": 13.475
}
},
{
"activities": [
{
"jobId": "parcel_lichtenberg",
"type": "delivery",
"location": {
"lat": 52.515,
"lng": 13.499
},
"time": {
"arrival": "2026-03-10T11:45:38Z",
"start": "2026-03-10T11:45:38Z",
"end": "2026-03-10T11:50:38Z"
}
},
{
"jobId": "bulky_parcel_lichtenberg",
"type": "delivery",
"location": {
"lat": 52.515,
"lng": 13.499
},
"time": {
"arrival": "2026-03-10T11:50:38Z",
"start": "2026-03-10T11:50:38Z",
"end": "2026-03-10T12:15:38Z"
}
}
],
"load": [
39
],
"time": {
"arrival": "2026-03-10T11:45:38Z",
"departure": "2026-03-10T12:15:38Z"
},
"distance": 51481,
"location": {
"lat": 52.515,
"lng": 13.499
}
},
{
"activities": [
{
"jobId": "parcel_hohenschoenhausen",
"type": "delivery",
"location": {
"lat": 52.54,
"lng": 13.5
},
"time": {
"arrival": "2026-03-10T12:20:51Z",
"start": "2026-03-10T12:20:51Z",
"end": "2026-03-10T12:25:51Z"
}
}
],
"load": [
37
],
"time": {
"arrival": "2026-03-10T12:20:51Z",
"departure": "2026-03-10T12:25:51Z"
},
"distance": 54311,
"location": {
"lat": 52.54,
"lng": 13.5
}
},
{
"activities": [
{
"jobId": "parcel_weissensee",
"type": "delivery",
"location": {
"lat": 52.55694,
"lng": 13.46597
},
"time": {
"arrival": "2026-03-10T12:37:13Z",
"start": "2026-03-10T12:37:13Z",
"end": "2026-03-10T12:42:13Z"
}
},
{
"jobId": "bulky_parcel_weissensee",
"type": "delivery",
"location": {
"lat": 52.55694,
"lng": 13.46597
},
"time": {
"arrival": "2026-03-10T12:42:13Z",
"start": "2026-03-10T12:42:13Z",
"end": "2026-03-10T13:07:13Z"
}
}
],
"load": [
29
],
"time": {
"arrival": "2026-03-10T12:37:13Z",
"departure": "2026-03-10T13:07:13Z"
},
"distance": 59473,
"location": {
"lat": 52.55694,
"lng": 13.46597
}
},
{
"activities": [
{
"jobId": "parcel_prenzlauer_berg_nord",
"type": "delivery",
"location": {
"lat": 52.545,
"lng": 13.425
},
"time": {
"arrival": "2026-03-10T13:16:50Z",
"start": "2026-03-10T13:16:50Z",
"end": "2026-03-10T13:21:50Z"
}
}
],
"load": [
26
],
"time": {
"arrival": "2026-03-10T13:16:50Z",
"departure": "2026-03-10T13:21:50Z"
},
"distance": 63586,
"location": {
"lat": 52.545,
"lng": 13.425
}
},
{
"activities": [
{
"jobId": "parcel_prenzlauer_berg_sued",
"type": "delivery",
"location": {
"lat": 52.539,
"lng": 13.424
},
"time": {
"arrival": "2026-03-10T13:23:21Z",
"start": "2026-03-10T13:23:21Z",
"end": "2026-03-10T13:28:21Z"
}
}
],
"load": [
22
],
"time": {
"arrival": "2026-03-10T13:23:21Z",
"departure": "2026-03-10T13:28:21Z"
},
"distance": 64324,
"location": {
"lat": 52.539,
"lng": 13.424
}
},
{
"activities": [
{
"jobId": "bulky_parcel_pankow",
"type": "delivery",
"location": {
"lat": 52.569,
"lng": 13.402
},
"time": {
"arrival": "2026-03-10T13:38:16Z",
"start": "2026-03-10T13:38:16Z",
"end": "2026-03-10T14:03:16Z"
}
},
{
"jobId": "parcel_pankow",
"type": "delivery",
"location": {
"lat": 52.569,
"lng": 13.402
},
"time": {
"arrival": "2026-03-10T14:03:16Z",
"start": "2026-03-10T14:03:16Z",
"end": "2026-03-10T14:08:16Z"
}
}
],
"load": [
12
],
"time": {
"arrival": "2026-03-10T13:38:16Z",
"departure": "2026-03-10T14:08:16Z"
},
"distance": 69508,
"location": {
"lat": 52.569,
"lng": 13.402
}
},
{
"activities": [
{
"jobId": "parcel_gesundbrunnen",
"type": "delivery",
"location": {
"lat": 52.549,
"lng": 13.388
},
"time": {
"arrival": "2026-03-10T14:15:43Z",
"start": "2026-03-10T14:15:43Z",
"end": "2026-03-10T14:20:43Z"
}
}
],
"load": [
10
],
"time": {
"arrival": "2026-03-10T14:15:43Z",
"departure": "2026-03-10T14:20:43Z"
},
"distance": 72672,
"location": {
"lat": 52.549,
"lng": 13.388
}
},
{
"activities": [
{
"jobId": "bulky_parcel_wedding",
"type": "delivery",
"location": {
"lat": 52.549,
"lng": 13.365
},
"time": {
"arrival": "2026-03-10T14:26:11Z",
"start": "2026-03-10T14:26:11Z",
"end": "2026-03-10T14:51:11Z"
}
},
{
"jobId": "parcel_wedding",
"type": "delivery",
"location": {
"lat": 52.549,
"lng": 13.365
},
"time": {
"arrival": "2026-03-10T14:51:11Z",
"start": "2026-03-10T14:51:11Z",
"end": "2026-03-10T14:56:11Z"
}
}
],
"load": [
0
],
"time": {
"arrival": "2026-03-10T14:26:11Z",
"departure": "2026-03-10T14:56:11Z"
},
"distance": 74825,
"location": {
"lat": 52.549,
"lng": 13.365
}
},
{
"activities": [
{
"jobId": "arrival",
"type": "arrival",
"location": {
"lat": 52.5253,
"lng": 13.3694
},
"time": {
"arrival": "2026-03-10T15:06:18Z",
"start": "2026-03-10T15:06:18Z",
"end": "2026-03-10T15:06:18Z"
}
}
],
"load": [
0
],
"time": {
"arrival": "2026-03-10T15:06:18Z",
"departure": "2026-03-10T15:06:18Z"
},
"distance": 78878,
"location": {
"lat": 52.5253,
"lng": 13.3694
}
}
],
"typeId": "e_van",
"vehicleId": "e_van_1"
}
]
}This table compares key solution parameters for each use case:
| Metric | Without synchronization | With synchronization |
|---|---|---|
| Assigned deliveries | 23 | 24 |
| Tour duration (seconds) | 26,778 | 25,578 |
| Tour cost | 2,981.02 | 2,885.02 |
| Tour distance (meters) | 78,878 | 78,878 |
| Driving time (seconds) | 9,978 | 9,978 |
| Serving time (seconds) | 10,500 | 12,000 |
| Break time (seconds) | 2,700 | 2,700 |
| Charging time (seconds) | 3,600 | 3,600 |
In the solution with canSyncWithCharging enabled, the tour duration is reduced by 1,200 seconds and tour cost by 96, while driving time and distance stay the same. In addition, the synchronized solution serves all 24 deliveries, while the baseline leaves one unassigned because of a time-window violation. Both solutions retain the same break and charging durations. While the use case comparison contains a lower number of jobs for the purpose of demonstration, its main purpose is demonstrate that enabling the canSyncWithCharging feature for your EV fleet can have positive impact on such tour statistics like tour duration, costs, and the number of unassigned jobs. For more complex tour plans involving hundreds of jobs or increased distances between stops, the impact that the feature provides can be even more significant.
Next steps
- For more information about rest time configuration, see Incorporate rest times.
- For more information about planning EV tours, see Plan efficient routes for EV fleets.
- For more information about experimental flags, see Explore experimental features.
Updated 2 days ago