Optimize car routes by travel time or distance
The car profile allows you to adjust the route calculation mode depending on your business requirements which affects how the optimization algorithm calculates routes between all stops in the tour. The following modes are available:
fast(default): Minimizes time on roadshort: Minimizes mileage
Fast mode - optimize by travel time
The fast mode optimizes routes by minimizing the total travel time. This mode considers such speed information as typical travel speeds of different road types (for example, highways, arterial roads, residential streets, and so on), traffic conditions, and speed limits to calculate realistic travel times. This default mode covers most business use cases such as time-sensitive deliveries (for example, same-day delivery or express courier services).
Short mode - optimize by distance
This mode optimizes routes by minimizing the total distance that a vehicle covers during a tour. In this mode, the optimization algorithm explicitly disregards any speed information entirely and looks only at the physical distance between points, attempting to minimize that distance, without considering how fast a vehicle can drive on different roads. This mode is particularly well-suited for cost-sensitive operation in which factors such as reducing fuel consumption are crucial (for example, to meet environmental compliance goals or for mileage-based cost reduction use cases).
Note
The
shortmode does NOT necessarily produce the absolute shortest distance, as the optimization algorithm keeps the routes as sensible as possible, for example, by penalizing unnecessary turns.
Understand car profile mode configuration
In the problem specification, you configure the mode property within the fleet.profiles object for the car profile, as shown in the following snippet:
{
"fleet": {
"profiles": [
{
"name": "quick_delivery_vehicle",
"type": "car",
"mode": "short"
}
]
}
}The mode you selected for a car profile applies to all routing calculations for that profile throughout the tour. If you do not specify the mode property, the optimization algorithm uses the fast mode by default.
Understand how mode interacts with other optimization settings
The mode property controls the routing matrix calculations (returning either faster travel times or shorter distances between location, depending on the mode selected), but the final optimization depends on the following configuration:
By understanding this relationship, you can avoid getting mixed or unexpected results.
Align mode with vehicle costs
The optimization algorithm uses vehicle costs as one of the main factors for evaluating routing decisions. By default, if you don't specify objectives, the system use the following objective function configuration: [{type: "minimizeUnassigned"}, {type: "minimizeTours"}, {type: "minimizeCost"}]. The minimizeCost objective is sensitive to your costs.distance and costs.time configuration:
{
"costs": {
"distance": 0.001, // Cost per meter
"time": 0.002, // Cost per second
"fixed": 10
}
}Setting mode to short requests distance-optimized routes. However, if costs.time significantly outweighs cost.distance or cost.distance equals 0, the optimization algorithm might still prioritize time-based decisions when building the tour.
Note
Specifying
excessCoststhat penalize violating maximum distance limits might also cause the optimization algorithm to favor time-based solutions, even if you setmodetoshort.
To ensure results consistent with the selected mode, adjust the costs weights properly. For example, if using the short option, put a higher weight on costs.distance and lower weight on costs.time, for example:
{
"fleet": {
"types": [{
"costs": {
"distance": 0.002, // Higher weight on distance
"time": 0.0001, // Lower weight on time
"fixed": 10
}
}],
"profiles": [{
"type": "car",
"mode": "short" // Request distance-optimized routes
}]
}
}Note
Adjust
costsweights based on your individual business requirements.
Align with objectives
If you specify objectives explicitly, make sure that the objectives that you set align with your mode setting. For example, if you specify mode as fast but then include the minimizeDistance objective, the mode setting might take little effect, because mode: "fast" provides time-optimized routes, but minimizeDistance tells the optimization algorithm to minimize distance, which creates a mismatch.
The same is true if you set mode to short while including the minimizeDuration objective in your problem. An example of aligned configuration includes:
{
"profiles": [{"type": "car", "mode": "short"}],
"objectives": [
{"type": "minimizeUnassigned"},
{"type": "minimizeDistance"} // Aligns with short mode
]
}For more information, see Using objective functions.
Compare route optimization modes
The following sections provide a practical demonstration of the difference between fast and short profiles. The comparison scenario involves two problems including the same set of jobs, same vehicles, and the same start and end locations in Berlin.
The purpose of the comparison is to showcase the trade-off between minimizing travel time versus minimizing distance. With the fast mode, the optimization algorithm might choose longer distances if they result in faster times (for example, by selecting highways or high-speed roads). Conversely, in the short mode, the optimization algorithm prioritizes shorter distances, even at the cost of increased travel time.
Problem with fast mode (default)
This problem uses the default fast mode for route calculation and has the following configuration:
- 49 delivery jobs scattered across Berlin served by a single vehicle
- Vehicle profile set to
carwith the default mode - 12-hour shift time (from
8:00to20:00) - Vehicle capacity set to 50 units
- The vehicle starts and ends at the same Berlin location (lat:
52.531, lng:13.38461) - The time-based cost (
0.002per second) and distance-based cost (0.001per meter)
See the following snippet for the full problem definition:
Click to expand/collapse the sample JSON
{
"fleet": {
"types": [
{
"profile": "car",
"amount": 1,
"capacity": [
50
],
"costs": {
"time": 0.002,
"distance": 0.001,
"fixed": 10
},
"id": "vehicle_1",
"shifts": [
{
"start": {
"location": {
"lat": 52.531,
"lng": 13.38461
},
"time": "2024-06-24T08:00:00+02:00"
},
"end": {
"location": {
"lat": 52.531,
"lng": 13.38461
},
"time": "2024-06-24T20:00:00+02:00"
}
}
]
}
],
"profiles": [
{
"name": "car",
"type": "car"
}
]
},
"plan": {
"jobs": [
{
"id": "Job_1",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.63329,
"lng": 13.3138
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_2",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.62738533184079,
"lng": 13.3789
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_3",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.51635175288175,
"lng": 13.343661020679571
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_4",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.456,
"lng": 13.403260583257188
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_5",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.63256,
"lng": 13.37322
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_6",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.45810373923444,
"lng": 13.331808942475499
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_7",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.439442845393685,
"lng": 13.336118100685782
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_8",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.53213114000045,
"lng": 13.373517153879769
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_9",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.4823,
"lng": 13.4703
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_10",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.5313,
"lng": 13.35356
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_11",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.457844833248835,
"lng": 13.322525701671735
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_12",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.4329271708958,
"lng": 13.376558539227483
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_13",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.48128598928299,
"lng": 13.4944
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_14",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.580380893737356,
"lng": 13.304479222218161
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_15",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.444597854004236,
"lng": 13.42729037972278
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_16",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.5102,
"lng": 13.3444
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_17",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.48903177127663,
"lng": 13.495944342993262
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_18",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.62863,
"lng": 13.3621182
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_19",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.65831976801964,
"lng": 13.359646771531477
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_20",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.61955,
"lng": 13.29845
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_21",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.49949154428338,
"lng": 13.40857671284082
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_22",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.465255531970406,
"lng": 13.511537556934355
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_23",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.4312,
"lng": 13.45023
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_24",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.5293,
"lng": 13.38507204916371
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_25",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.6378,
"lng": 13.48675
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_26",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.53754,
"lng": 13.34152
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_27",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.48811100200862,
"lng": 13.376
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_28",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.4745,
"lng": 13.42
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_29",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.58884270031872,
"lng": 13.352068415230912
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_30",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.60079217247425,
"lng": 13.339813254226156
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_31",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.4779,
"lng": 13.5012
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_32",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.60066027234286,
"lng": 13.502741838681837
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_33",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.55437436208552,
"lng": 13.503142187091647
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_34",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.48446152479127,
"lng": 13.392004256315916
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_35",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.482203294624796,
"lng": 13.391214601891551
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_36",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.60842932011795,
"lng": 13.46922174529483
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_37",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.47651505101506,
"lng": 13.459944175857151
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_38",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.50488105730338,
"lng": 13.355333507786808
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_39",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.6029,
"lng": 13.3113
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_40",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.6543,
"lng": 13.39278
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_41",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.51508491755749,
"lng": 13.38
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_42",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.63313572894435,
"lng": 13.506488581249922
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_43",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.459450803409204,
"lng": 13.396015195980405
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_44",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.54433793446157,
"lng": 13.49579242116612
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_45",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.486517527979494,
"lng": 13.382057792236846
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_46",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.55606147412602,
"lng": 13.41517487839967
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_47",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.591995183321515,
"lng": 13.36000789424169
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_48",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.56223251898173,
"lng": 13.471999398223556
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_49",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.595251760429065,
"lng": 13.456764166098564
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
}
]
}
}Solution with fast mode
The fast mode solution produced the following key statistics:
- Total cost: 267.88
- Total distance: 182,668 meters (≈182.7 km)
- Total duration: 37,605 seconds (≈10.4 hours)
- Driving time: 22,905 seconds (≈6.4 hours)
- Service time: 14,700 seconds (≈4.1 hours)
All 49 jobs were successfully assigned and completed. The route sequence was optimized to minimize the time spent traveling.
See the following snippet for the full problem solution:
Click to expand/collapse the sample JSON
{
"statistic": {
"cost": 267.87800000000004,
"distance": 182668,
"duration": 37605,
"times": {
"driving": 22905,
"serving": 14700,
"waiting": 0,
"stopping": 0,
"break": 0,
"intraStop": 0
},
"intraStopDistance": 0
},
"tours": [
{
"vehicleId": "vehicle_1_1",
"typeId": "vehicle_1",
"stops": [
{
"time": {
"arrival": "2024-06-24T06:00:00Z",
"departure": "2024-06-24T06:00:00Z"
},
"load": [
49
],
"activities": [
{
"jobId": "departure",
"type": "departure",
"location": {
"lat": 52.531,
"lng": 13.38461
},
"time": {
"start": "2024-06-24T06:00:00Z",
"end": "2024-06-24T06:00:00Z",
"arrival": "2024-06-24T06:00:00Z"
}
}
],
"location": {
"lat": 52.531,
"lng": 13.38461
},
"distance": 0
},
{
"time": {
"arrival": "2024-06-24T06:02:22Z",
"departure": "2024-06-24T06:07:22Z"
},
"load": [
48
],
"activities": [
{
"jobId": "Job_8",
"type": "delivery",
"location": {
"lat": 52.53213114000045,
"lng": 13.373517153879767
},
"time": {
"start": "2024-06-24T06:02:22Z",
"end": "2024-06-24T06:07:22Z",
"arrival": "2024-06-24T06:02:22Z"
}
}
],
"location": {
"lat": 52.53213114000045,
"lng": 13.373517153879767
},
"distance": 1079
},
{
"time": {
"arrival": "2024-06-24T06:10:45Z",
"departure": "2024-06-24T06:15:45Z"
},
"load": [
47
],
"activities": [
{
"jobId": "Job_24",
"type": "delivery",
"location": {
"lat": 52.5293,
"lng": 13.38507204916371
},
"time": {
"start": "2024-06-24T06:10:45Z",
"end": "2024-06-24T06:15:45Z",
"arrival": "2024-06-24T06:10:45Z"
}
}
],
"location": {
"lat": 52.5293,
"lng": 13.38507204916371
},
"distance": 2276
},
{
"time": {
"arrival": "2024-06-24T06:21:35Z",
"departure": "2024-06-24T06:26:35Z"
},
"load": [
46
],
"activities": [
{
"jobId": "Job_41",
"type": "delivery",
"location": {
"lat": 52.51508491755749,
"lng": 13.38
},
"time": {
"start": "2024-06-24T06:21:35Z",
"end": "2024-06-24T06:26:35Z",
"arrival": "2024-06-24T06:21:35Z"
}
}
],
"location": {
"lat": 52.51508491755749,
"lng": 13.38
},
"distance": 4500
},
{
"time": {
"arrival": "2024-06-24T06:34:07Z",
"departure": "2024-06-24T06:39:07Z"
},
"load": [
45
],
"activities": [
{
"jobId": "Job_21",
"type": "delivery",
"location": {
"lat": 52.49949154428338,
"lng": 13.40857671284082
},
"time": {
"start": "2024-06-24T06:34:07Z",
"end": "2024-06-24T06:39:07Z",
"arrival": "2024-06-24T06:34:07Z"
}
}
],
"location": {
"lat": 52.49949154428338,
"lng": 13.40857671284082
},
"distance": 7902
},
{
"time": {
"arrival": "2024-06-24T06:46:30Z",
"departure": "2024-06-24T06:51:30Z"
},
"load": [
44
],
"activities": [
{
"jobId": "Job_27",
"type": "delivery",
"location": {
"lat": 52.48811100200862,
"lng": 13.376
},
"time": {
"start": "2024-06-24T06:46:30Z",
"end": "2024-06-24T06:51:30Z",
"arrival": "2024-06-24T06:46:30Z"
}
}
],
"location": {
"lat": 52.48811100200862,
"lng": 13.376
},
"distance": 11286
},
{
"time": {
"arrival": "2024-06-24T06:55:31Z",
"departure": "2024-06-24T07:00:31Z"
},
"load": [
43
],
"activities": [
{
"jobId": "Job_45",
"type": "delivery",
"location": {
"lat": 52.486517527979494,
"lng": 13.382057792236846
},
"time": {
"start": "2024-06-24T06:55:31Z",
"end": "2024-06-24T07:00:31Z",
"arrival": "2024-06-24T06:55:31Z"
}
}
],
"location": {
"lat": 52.486517527979494,
"lng": 13.382057792236846
},
"distance": 12498
},
{
"time": {
"arrival": "2024-06-24T07:04:41Z",
"departure": "2024-06-24T07:09:41Z"
},
"load": [
42
],
"activities": [
{
"jobId": "Job_34",
"type": "delivery",
"location": {
"lat": 52.48446152479127,
"lng": 13.392004256315916
},
"time": {
"start": "2024-06-24T07:04:41Z",
"end": "2024-06-24T07:09:41Z",
"arrival": "2024-06-24T07:04:41Z"
}
}
],
"location": {
"lat": 52.48446152479127,
"lng": 13.392004256315916
},
"distance": 13648
},
{
"time": {
"arrival": "2024-06-24T07:17:07Z",
"departure": "2024-06-24T07:22:07Z"
},
"load": [
41
],
"activities": [
{
"jobId": "Job_35",
"type": "delivery",
"location": {
"lat": 52.4822032946248,
"lng": 13.391214601891551
},
"time": {
"start": "2024-06-24T07:17:07Z",
"end": "2024-06-24T07:22:07Z",
"arrival": "2024-06-24T07:17:07Z"
}
}
],
"location": {
"lat": 52.4822032946248,
"lng": 13.391214601891551
},
"distance": 15276
},
{
"time": {
"arrival": "2024-06-24T07:32:25Z",
"departure": "2024-06-24T07:37:25Z"
},
"load": [
40
],
"activities": [
{
"jobId": "Job_28",
"type": "delivery",
"location": {
"lat": 52.4745,
"lng": 13.42
},
"time": {
"start": "2024-06-24T07:32:25Z",
"end": "2024-06-24T07:37:25Z",
"arrival": "2024-06-24T07:32:25Z"
}
}
],
"location": {
"lat": 52.4745,
"lng": 13.42
},
"distance": 18483
},
{
"time": {
"arrival": "2024-06-24T07:48:06Z",
"departure": "2024-06-24T07:53:06Z"
},
"load": [
39
],
"activities": [
{
"jobId": "Job_37",
"type": "delivery",
"location": {
"lat": 52.47651505101506,
"lng": 13.459944175857151
},
"time": {
"start": "2024-06-24T07:48:06Z",
"end": "2024-06-24T07:53:06Z",
"arrival": "2024-06-24T07:48:06Z"
}
}
],
"location": {
"lat": 52.47651505101506,
"lng": 13.459944175857151
},
"distance": 22797
},
{
"time": {
"arrival": "2024-06-24T07:59:23Z",
"departure": "2024-06-24T08:04:23Z"
},
"load": [
38
],
"activities": [
{
"jobId": "Job_9",
"type": "delivery",
"location": {
"lat": 52.4823,
"lng": 13.4703
},
"time": {
"start": "2024-06-24T07:59:23Z",
"end": "2024-06-24T08:04:23Z",
"arrival": "2024-06-24T07:59:23Z"
}
}
],
"location": {
"lat": 52.4823,
"lng": 13.4703
},
"distance": 25509
},
{
"time": {
"arrival": "2024-06-24T08:14:34Z",
"departure": "2024-06-24T08:19:34Z"
},
"load": [
37
],
"activities": [
{
"jobId": "Job_13",
"type": "delivery",
"location": {
"lat": 52.48128598928299,
"lng": 13.4944
},
"time": {
"start": "2024-06-24T08:14:34Z",
"end": "2024-06-24T08:19:34Z",
"arrival": "2024-06-24T08:14:34Z"
}
}
],
"location": {
"lat": 52.48128598928299,
"lng": 13.4944
},
"distance": 27637
},
{
"time": {
"arrival": "2024-06-24T08:36:48Z",
"departure": "2024-06-24T08:41:48Z"
},
"load": [
36
],
"activities": [
{
"jobId": "Job_31",
"type": "delivery",
"location": {
"lat": 52.4779,
"lng": 13.5012
},
"time": {
"start": "2024-06-24T08:36:48Z",
"end": "2024-06-24T08:41:48Z",
"arrival": "2024-06-24T08:36:48Z"
}
}
],
"location": {
"lat": 52.4779,
"lng": 13.5012
},
"distance": 33122
},
{
"time": {
"arrival": "2024-06-24T08:46:42Z",
"departure": "2024-06-24T08:51:42Z"
},
"load": [
35
],
"activities": [
{
"jobId": "Job_17",
"type": "delivery",
"location": {
"lat": 52.48903177127663,
"lng": 13.495944342993262
},
"time": {
"start": "2024-06-24T08:46:42Z",
"end": "2024-06-24T08:51:42Z",
"arrival": "2024-06-24T08:46:42Z"
}
}
],
"location": {
"lat": 52.48903177127663,
"lng": 13.495944342993262
},
"distance": 34488
},
{
"time": {
"arrival": "2024-06-24T08:57:10Z",
"departure": "2024-06-24T09:02:10Z"
},
"load": [
34
],
"activities": [
{
"jobId": "Job_22",
"type": "delivery",
"location": {
"lat": 52.465255531970406,
"lng": 13.511537556934355
},
"time": {
"start": "2024-06-24T08:57:10Z",
"end": "2024-06-24T09:02:10Z",
"arrival": "2024-06-24T08:57:10Z"
}
}
],
"location": {
"lat": 52.465255531970406,
"lng": 13.511537556934355
},
"distance": 38092
},
{
"time": {
"arrival": "2024-06-24T09:17:28Z",
"departure": "2024-06-24T09:22:28Z"
},
"load": [
33
],
"activities": [
{
"jobId": "Job_23",
"type": "delivery",
"location": {
"lat": 52.4312,
"lng": 13.45023
},
"time": {
"start": "2024-06-24T09:17:28Z",
"end": "2024-06-24T09:22:28Z",
"arrival": "2024-06-24T09:17:28Z"
}
}
],
"location": {
"lat": 52.4312,
"lng": 13.45023
},
"distance": 46878
},
{
"time": {
"arrival": "2024-06-24T09:30:44Z",
"departure": "2024-06-24T09:35:44Z"
},
"load": [
32
],
"activities": [
{
"jobId": "Job_15",
"type": "delivery",
"location": {
"lat": 52.44459785400424,
"lng": 13.42729037972278
},
"time": {
"start": "2024-06-24T09:30:44Z",
"end": "2024-06-24T09:35:44Z",
"arrival": "2024-06-24T09:30:44Z"
}
}
],
"location": {
"lat": 52.44459785400424,
"lng": 13.42729037972278
},
"distance": 51162
},
{
"time": {
"arrival": "2024-06-24T09:43:33Z",
"departure": "2024-06-24T09:48:33Z"
},
"load": [
31
],
"activities": [
{
"jobId": "Job_4",
"type": "delivery",
"location": {
"lat": 52.456,
"lng": 13.403260583257188
},
"time": {
"start": "2024-06-24T09:43:33Z",
"end": "2024-06-24T09:48:33Z",
"arrival": "2024-06-24T09:43:33Z"
}
}
],
"location": {
"lat": 52.456,
"lng": 13.403260583257188
},
"distance": 55362
},
{
"time": {
"arrival": "2024-06-24T09:50:56Z",
"departure": "2024-06-24T09:55:56Z"
},
"load": [
30
],
"activities": [
{
"jobId": "Job_43",
"type": "delivery",
"location": {
"lat": 52.4594508034092,
"lng": 13.396015195980404
},
"time": {
"start": "2024-06-24T09:50:56Z",
"end": "2024-06-24T09:55:56Z",
"arrival": "2024-06-24T09:50:56Z"
}
}
],
"location": {
"lat": 52.4594508034092,
"lng": 13.396015195980404
},
"distance": 56267
},
{
"time": {
"arrival": "2024-06-24T10:03:36Z",
"departure": "2024-06-24T10:08:36Z"
},
"load": [
29
],
"activities": [
{
"jobId": "Job_12",
"type": "delivery",
"location": {
"lat": 52.4329271708958,
"lng": 13.376558539227483
},
"time": {
"start": "2024-06-24T10:03:36Z",
"end": "2024-06-24T10:08:36Z",
"arrival": "2024-06-24T10:03:36Z"
}
}
],
"location": {
"lat": 52.4329271708958,
"lng": 13.376558539227483
},
"distance": 60332
},
{
"time": {
"arrival": "2024-06-24T10:16:53Z",
"departure": "2024-06-24T10:21:53Z"
},
"load": [
28
],
"activities": [
{
"jobId": "Job_7",
"type": "delivery",
"location": {
"lat": 52.439442845393685,
"lng": 13.336118100685782
},
"time": {
"start": "2024-06-24T10:16:53Z",
"end": "2024-06-24T10:21:53Z",
"arrival": "2024-06-24T10:16:53Z"
}
}
],
"location": {
"lat": 52.439442845393685,
"lng": 13.336118100685782
},
"distance": 64640
},
{
"time": {
"arrival": "2024-06-24T10:28:04Z",
"departure": "2024-06-24T10:33:04Z"
},
"load": [
27
],
"activities": [
{
"jobId": "Job_11",
"type": "delivery",
"location": {
"lat": 52.457844833248835,
"lng": 13.322525701671736
},
"time": {
"start": "2024-06-24T10:28:04Z",
"end": "2024-06-24T10:33:04Z",
"arrival": "2024-06-24T10:28:04Z"
}
}
],
"location": {
"lat": 52.457844833248835,
"lng": 13.322525701671736
},
"distance": 67400
},
{
"time": {
"arrival": "2024-06-24T10:36:00Z",
"departure": "2024-06-24T10:41:00Z"
},
"load": [
26
],
"activities": [
{
"jobId": "Job_6",
"type": "delivery",
"location": {
"lat": 52.45810373923444,
"lng": 13.3318089424755
},
"time": {
"start": "2024-06-24T10:36:00Z",
"end": "2024-06-24T10:41:00Z",
"arrival": "2024-06-24T10:36:00Z"
}
}
],
"location": {
"lat": 52.45810373923444,
"lng": 13.3318089424755
},
"distance": 68588
},
{
"time": {
"arrival": "2024-06-24T10:51:39Z",
"departure": "2024-06-24T10:56:39Z"
},
"load": [
25
],
"activities": [
{
"jobId": "Job_38",
"type": "delivery",
"location": {
"lat": 52.50488105730338,
"lng": 13.355333507786808
},
"time": {
"start": "2024-06-24T10:51:39Z",
"end": "2024-06-24T10:56:39Z",
"arrival": "2024-06-24T10:51:39Z"
}
}
],
"location": {
"lat": 52.50488105730338,
"lng": 13.355333507786808
},
"distance": 75589
},
{
"time": {
"arrival": "2024-06-24T11:01:35Z",
"departure": "2024-06-24T11:06:35Z"
},
"load": [
24
],
"activities": [
{
"jobId": "Job_16",
"type": "delivery",
"location": {
"lat": 52.5102,
"lng": 13.3444
},
"time": {
"start": "2024-06-24T11:01:35Z",
"end": "2024-06-24T11:06:35Z",
"arrival": "2024-06-24T11:01:35Z"
}
}
],
"location": {
"lat": 52.5102,
"lng": 13.3444
},
"distance": 77323
},
{
"time": {
"arrival": "2024-06-24T11:13:49Z",
"departure": "2024-06-24T11:18:49Z"
},
"load": [
23
],
"activities": [
{
"jobId": "Job_3",
"type": "delivery",
"location": {
"lat": 52.51635175288175,
"lng": 13.343661020679573
},
"time": {
"start": "2024-06-24T11:13:49Z",
"end": "2024-06-24T11:18:49Z",
"arrival": "2024-06-24T11:13:49Z"
}
}
],
"location": {
"lat": 52.51635175288175,
"lng": 13.343661020679573
},
"distance": 80236
},
{
"time": {
"arrival": "2024-06-24T11:25:26Z",
"departure": "2024-06-24T11:30:26Z"
},
"load": [
22
],
"activities": [
{
"jobId": "Job_10",
"type": "delivery",
"location": {
"lat": 52.5313,
"lng": 13.35356
},
"time": {
"start": "2024-06-24T11:25:26Z",
"end": "2024-06-24T11:30:26Z",
"arrival": "2024-06-24T11:25:26Z"
}
}
],
"location": {
"lat": 52.5313,
"lng": 13.35356
},
"distance": 83129
},
{
"time": {
"arrival": "2024-06-24T11:34:42Z",
"departure": "2024-06-24T11:39:42Z"
},
"load": [
21
],
"activities": [
{
"jobId": "Job_26",
"type": "delivery",
"location": {
"lat": 52.53754,
"lng": 13.34152
},
"time": {
"start": "2024-06-24T11:34:42Z",
"end": "2024-06-24T11:39:42Z",
"arrival": "2024-06-24T11:34:42Z"
}
}
],
"location": {
"lat": 52.53754,
"lng": 13.34152
},
"distance": 84951
},
{
"time": {
"arrival": "2024-06-24T11:57:03Z",
"departure": "2024-06-24T12:02:03Z"
},
"load": [
20
],
"activities": [
{
"jobId": "Job_29",
"type": "delivery",
"location": {
"lat": 52.58884270031872,
"lng": 13.352068415230912
},
"time": {
"start": "2024-06-24T11:57:03Z",
"end": "2024-06-24T12:02:03Z",
"arrival": "2024-06-24T11:57:03Z"
}
}
],
"location": {
"lat": 52.58884270031872,
"lng": 13.352068415230912
},
"distance": 92705
},
{
"time": {
"arrival": "2024-06-24T12:14:48Z",
"departure": "2024-06-24T12:19:48Z"
},
"load": [
19
],
"activities": [
{
"jobId": "Job_47",
"type": "delivery",
"location": {
"lat": 52.591995183321515,
"lng": 13.36000789424169
},
"time": {
"start": "2024-06-24T12:14:48Z",
"end": "2024-06-24T12:19:48Z",
"arrival": "2024-06-24T12:14:48Z"
}
}
],
"location": {
"lat": 52.591995183321515,
"lng": 13.36000789424169
},
"distance": 97326
},
{
"time": {
"arrival": "2024-06-24T12:25:14Z",
"departure": "2024-06-24T12:30:14Z"
},
"load": [
18
],
"activities": [
{
"jobId": "Job_30",
"type": "delivery",
"location": {
"lat": 52.60079217247425,
"lng": 13.339813254226156
},
"time": {
"start": "2024-06-24T12:25:14Z",
"end": "2024-06-24T12:30:14Z",
"arrival": "2024-06-24T12:25:14Z"
}
}
],
"location": {
"lat": 52.60079217247425,
"lng": 13.339813254226156
},
"distance": 99578
},
{
"time": {
"arrival": "2024-06-24T12:35:39Z",
"departure": "2024-06-24T12:40:39Z"
},
"load": [
17
],
"activities": [
{
"jobId": "Job_39",
"type": "delivery",
"location": {
"lat": 52.6029,
"lng": 13.3113
},
"time": {
"start": "2024-06-24T12:35:39Z",
"end": "2024-06-24T12:40:39Z",
"arrival": "2024-06-24T12:35:39Z"
}
}
],
"location": {
"lat": 52.6029,
"lng": 13.3113
},
"distance": 102364
},
{
"time": {
"arrival": "2024-06-24T12:48:23Z",
"departure": "2024-06-24T12:53:23Z"
},
"load": [
16
],
"activities": [
{
"jobId": "Job_14",
"type": "delivery",
"location": {
"lat": 52.58038089373736,
"lng": 13.30447922221816
},
"time": {
"start": "2024-06-24T12:48:23Z",
"end": "2024-06-24T12:53:23Z",
"arrival": "2024-06-24T12:48:23Z"
}
}
],
"location": {
"lat": 52.58038089373736,
"lng": 13.30447922221816
},
"distance": 106156
},
{
"time": {
"arrival": "2024-06-24T13:02:18Z",
"departure": "2024-06-24T13:07:18Z"
},
"load": [
15
],
"activities": [
{
"jobId": "Job_20",
"type": "delivery",
"location": {
"lat": 52.61955,
"lng": 13.29845
},
"time": {
"start": "2024-06-24T13:02:18Z",
"end": "2024-06-24T13:07:18Z",
"arrival": "2024-06-24T13:02:18Z"
}
}
],
"location": {
"lat": 52.61955,
"lng": 13.29845
},
"distance": 112369
},
{
"time": {
"arrival": "2024-06-24T13:13:00Z",
"departure": "2024-06-24T13:18:00Z"
},
"load": [
14
],
"activities": [
{
"jobId": "Job_1",
"type": "delivery",
"location": {
"lat": 52.63329,
"lng": 13.3138
},
"time": {
"start": "2024-06-24T13:13:00Z",
"end": "2024-06-24T13:18:00Z",
"arrival": "2024-06-24T13:13:00Z"
}
}
],
"location": {
"lat": 52.63329,
"lng": 13.3138
},
"distance": 115116
},
{
"time": {
"arrival": "2024-06-24T13:24:26Z",
"departure": "2024-06-24T13:29:26Z"
},
"load": [
13
],
"activities": [
{
"jobId": "Job_19",
"type": "delivery",
"location": {
"lat": 52.65831976801964,
"lng": 13.359646771531477
},
"time": {
"start": "2024-06-24T13:24:26Z",
"end": "2024-06-24T13:29:26Z",
"arrival": "2024-06-24T13:24:26Z"
}
}
],
"location": {
"lat": 52.65831976801964,
"lng": 13.359646771531477
},
"distance": 119970
},
{
"time": {
"arrival": "2024-06-24T13:34:34Z",
"departure": "2024-06-24T13:39:34Z"
},
"load": [
12
],
"activities": [
{
"jobId": "Job_40",
"type": "delivery",
"location": {
"lat": 52.6543,
"lng": 13.39278
},
"time": {
"start": "2024-06-24T13:34:34Z",
"end": "2024-06-24T13:39:34Z",
"arrival": "2024-06-24T13:34:34Z"
}
}
],
"location": {
"lat": 52.6543,
"lng": 13.39278
},
"distance": 122690
},
{
"time": {
"arrival": "2024-06-24T13:50:21Z",
"departure": "2024-06-24T13:55:21Z"
},
"load": [
11
],
"activities": [
{
"jobId": "Job_18",
"type": "delivery",
"location": {
"lat": 52.62863,
"lng": 13.3621182
},
"time": {
"start": "2024-06-24T13:50:21Z",
"end": "2024-06-24T13:55:21Z",
"arrival": "2024-06-24T13:50:21Z"
}
}
],
"location": {
"lat": 52.62863,
"lng": 13.3621182
},
"distance": 128415
},
{
"time": {
"arrival": "2024-06-24T13:58:15Z",
"departure": "2024-06-24T14:03:15Z"
},
"load": [
10
],
"activities": [
{
"jobId": "Job_5",
"type": "delivery",
"location": {
"lat": 52.63256,
"lng": 13.37322
},
"time": {
"start": "2024-06-24T13:58:15Z",
"end": "2024-06-24T14:03:15Z",
"arrival": "2024-06-24T13:58:15Z"
}
}
],
"location": {
"lat": 52.63256,
"lng": 13.37322
},
"distance": 129467
},
{
"time": {
"arrival": "2024-06-24T14:08:30Z",
"departure": "2024-06-24T14:13:30Z"
},
"load": [
9
],
"activities": [
{
"jobId": "Job_2",
"type": "delivery",
"location": {
"lat": 52.62738533184079,
"lng": 13.3789
},
"time": {
"start": "2024-06-24T14:08:30Z",
"end": "2024-06-24T14:13:30Z",
"arrival": "2024-06-24T14:08:30Z"
}
}
],
"location": {
"lat": 52.62738533184079,
"lng": 13.3789
},
"distance": 131659
},
{
"time": {
"arrival": "2024-06-24T14:29:14Z",
"departure": "2024-06-24T14:34:14Z"
},
"load": [
8
],
"activities": [
{
"jobId": "Job_49",
"type": "delivery",
"location": {
"lat": 52.595251760429065,
"lng": 13.456764166098564
},
"time": {
"start": "2024-06-24T14:29:14Z",
"end": "2024-06-24T14:34:14Z",
"arrival": "2024-06-24T14:29:14Z"
}
}
],
"location": {
"lat": 52.595251760429065,
"lng": 13.456764166098564
},
"distance": 140902
},
{
"time": {
"arrival": "2024-06-24T14:39:51Z",
"departure": "2024-06-24T14:44:51Z"
},
"load": [
7
],
"activities": [
{
"jobId": "Job_36",
"type": "delivery",
"location": {
"lat": 52.60842932011795,
"lng": 13.46922174529483
},
"time": {
"start": "2024-06-24T14:39:51Z",
"end": "2024-06-24T14:44:51Z",
"arrival": "2024-06-24T14:39:51Z"
}
}
],
"location": {
"lat": 52.60842932011795,
"lng": 13.46922174529483
},
"distance": 143746
},
{
"time": {
"arrival": "2024-06-24T14:54:23Z",
"departure": "2024-06-24T14:59:23Z"
},
"load": [
6
],
"activities": [
{
"jobId": "Job_25",
"type": "delivery",
"location": {
"lat": 52.6378,
"lng": 13.48675
},
"time": {
"start": "2024-06-24T14:54:23Z",
"end": "2024-06-24T14:59:23Z",
"arrival": "2024-06-24T14:54:23Z"
}
}
],
"location": {
"lat": 52.6378,
"lng": 13.48675
},
"distance": 148984
},
{
"time": {
"arrival": "2024-06-24T15:03:48Z",
"departure": "2024-06-24T15:08:48Z"
},
"load": [
5
],
"activities": [
{
"jobId": "Job_42",
"type": "delivery",
"location": {
"lat": 52.63313572894435,
"lng": 13.506488581249922
},
"time": {
"start": "2024-06-24T15:03:48Z",
"end": "2024-06-24T15:08:48Z",
"arrival": "2024-06-24T15:03:48Z"
}
}
],
"location": {
"lat": 52.63313572894435,
"lng": 13.506488581249922
},
"distance": 150543
},
{
"time": {
"arrival": "2024-06-24T15:20:46Z",
"departure": "2024-06-24T15:25:46Z"
},
"load": [
4
],
"activities": [
{
"jobId": "Job_32",
"type": "delivery",
"location": {
"lat": 52.60066027234286,
"lng": 13.502741838681835
},
"time": {
"start": "2024-06-24T15:20:46Z",
"end": "2024-06-24T15:25:46Z",
"arrival": "2024-06-24T15:20:46Z"
}
}
],
"location": {
"lat": 52.60066027234286,
"lng": 13.502741838681835
},
"distance": 159363
},
{
"time": {
"arrival": "2024-06-24T15:33:50Z",
"departure": "2024-06-24T15:38:50Z"
},
"load": [
3
],
"activities": [
{
"jobId": "Job_48",
"type": "delivery",
"location": {
"lat": 52.56223251898173,
"lng": 13.471999398223556
},
"time": {
"start": "2024-06-24T15:33:50Z",
"end": "2024-06-24T15:38:50Z",
"arrival": "2024-06-24T15:33:50Z"
}
}
],
"location": {
"lat": 52.56223251898173,
"lng": 13.471999398223556
},
"distance": 165024
},
{
"time": {
"arrival": "2024-06-24T15:44:48Z",
"departure": "2024-06-24T15:49:48Z"
},
"load": [
2
],
"activities": [
{
"jobId": "Job_33",
"type": "delivery",
"location": {
"lat": 52.55437436208552,
"lng": 13.503142187091647
},
"time": {
"start": "2024-06-24T15:44:48Z",
"end": "2024-06-24T15:49:48Z",
"arrival": "2024-06-24T15:44:48Z"
}
}
],
"location": {
"lat": 52.55437436208552,
"lng": 13.503142187091647
},
"distance": 168895
},
{
"time": {
"arrival": "2024-06-24T15:53:38Z",
"departure": "2024-06-24T15:58:38Z"
},
"load": [
1
],
"activities": [
{
"jobId": "Job_44",
"type": "delivery",
"location": {
"lat": 52.54433793446157,
"lng": 13.49579242116612
},
"time": {
"start": "2024-06-24T15:53:38Z",
"end": "2024-06-24T15:58:38Z",
"arrival": "2024-06-24T15:53:38Z"
}
}
],
"location": {
"lat": 52.54433793446157,
"lng": 13.49579242116612
},
"distance": 170540
},
{
"time": {
"arrival": "2024-06-24T16:13:07Z",
"departure": "2024-06-24T16:18:07Z"
},
"load": [
0
],
"activities": [
{
"jobId": "Job_46",
"type": "delivery",
"location": {
"lat": 52.55606147412602,
"lng": 13.41517487839967
},
"time": {
"start": "2024-06-24T16:13:07Z",
"end": "2024-06-24T16:18:07Z",
"arrival": "2024-06-24T16:13:07Z"
}
}
],
"location": {
"lat": 52.55606147412602,
"lng": 13.41517487839967
},
"distance": 178123
},
{
"time": {
"arrival": "2024-06-24T16:26:45Z",
"departure": "2024-06-24T16:26:45Z"
},
"load": [
0
],
"activities": [
{
"jobId": "arrival",
"type": "arrival",
"location": {
"lat": 52.531,
"lng": 13.38461
},
"time": {
"start": "2024-06-24T16:26:45Z",
"end": "2024-06-24T16:26:45Z",
"arrival": "2024-06-24T16:26:45Z"
}
}
],
"location": {
"lat": 52.531,
"lng": 13.38461
},
"distance": 182668
}
],
"statistic": {
"cost": 267.87800000000004,
"distance": 182668,
"duration": 37605,
"times": {
"driving": 22905,
"serving": 14700,
"waiting": 0,
"stopping": 0,
"break": 0,
"intraStop": 0
},
"intraStopDistance": 0
},
"shiftIndex": 0
}
]
}Problem with short mode
The following problem is identical to the fast mode example, except for the mode property, now set to short. This instructs the optimization algorithm to minimize total distance traveled (while still considering turns and sensible routing), which might result in longer travel times, but lower mileage.
See the following snippet for the full problem definition:
Click to expand/collapse the sample JSON
{
"fleet": {
"types": [
{
"profile": "car",
"amount": 1,
"capacity": [
50
],
"costs": {
"time": 0.002,
"distance": 0.001,
"fixed": 10
},
"id": "vehicle_1",
"shifts": [
{
"start": {
"location": {
"lat": 52.531,
"lng": 13.38461
},
"time": "2024-06-24T08:00:00+02:00"
},
"end": {
"location": {
"lat": 52.531,
"lng": 13.38461
},
"time": "2024-06-24T20:00:00+02:00"
}
}
]
}
],
"profiles": [
{
"name": "car",
"type": "car",
"mode": "short"
}
]
},
"plan": {
"jobs": [
{
"id": "Job_1",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.63329,
"lng": 13.3138
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_2",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.62738533184079,
"lng": 13.3789
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_3",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.51635175288175,
"lng": 13.343661020679571
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_4",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.456,
"lng": 13.403260583257188
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_5",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.63256,
"lng": 13.37322
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_6",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.45810373923444,
"lng": 13.331808942475499
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_7",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.439442845393685,
"lng": 13.336118100685782
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_8",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.53213114000045,
"lng": 13.373517153879769
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_9",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.4823,
"lng": 13.4703
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_10",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.5313,
"lng": 13.35356
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_11",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.457844833248835,
"lng": 13.322525701671735
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_12",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.4329271708958,
"lng": 13.376558539227483
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_13",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.48128598928299,
"lng": 13.4944
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_14",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.580380893737356,
"lng": 13.304479222218161
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_15",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.444597854004236,
"lng": 13.42729037972278
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_16",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.5102,
"lng": 13.3444
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_17",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.48903177127663,
"lng": 13.495944342993262
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_18",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.62863,
"lng": 13.3621182
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_19",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.65831976801964,
"lng": 13.359646771531477
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_20",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.61955,
"lng": 13.29845
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_21",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.49949154428338,
"lng": 13.40857671284082
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_22",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.465255531970406,
"lng": 13.511537556934355
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_23",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.4312,
"lng": 13.45023
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_24",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.5293,
"lng": 13.38507204916371
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_25",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.6378,
"lng": 13.48675
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_26",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.53754,
"lng": 13.34152
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_27",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.48811100200862,
"lng": 13.376
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_28",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.4745,
"lng": 13.42
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_29",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.58884270031872,
"lng": 13.352068415230912
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_30",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.60079217247425,
"lng": 13.339813254226156
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_31",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.4779,
"lng": 13.5012
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_32",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.60066027234286,
"lng": 13.502741838681837
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_33",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.55437436208552,
"lng": 13.503142187091647
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_34",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.48446152479127,
"lng": 13.392004256315916
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_35",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.482203294624796,
"lng": 13.391214601891551
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_36",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.60842932011795,
"lng": 13.46922174529483
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_37",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.47651505101506,
"lng": 13.459944175857151
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_38",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.50488105730338,
"lng": 13.355333507786808
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_39",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.6029,
"lng": 13.3113
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_40",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.6543,
"lng": 13.39278
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_41",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.51508491755749,
"lng": 13.38
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_42",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.63313572894435,
"lng": 13.506488581249922
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_43",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.459450803409204,
"lng": 13.396015195980405
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_44",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.54433793446157,
"lng": 13.49579242116612
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_45",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.486517527979494,
"lng": 13.382057792236846
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_46",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.55606147412602,
"lng": 13.41517487839967
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_47",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.591995183321515,
"lng": 13.36000789424169
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_48",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.56223251898173,
"lng": 13.471999398223556
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
},
{
"id": "Job_49",
"tasks": {
"deliveries": [
{
"places": [
{
"location": {
"lat": 52.595251760429065,
"lng": 13.456764166098564
},
"duration": 300
}
],
"demand": [
1
]
}
]
}
}
]
}
}Solution with short mode
The short mode solution produced the following key statistics:
- Total cost: 260.52
- Total distance: 175,511 meters (≈175.5 km)
- Total duration: 37,503 seconds (≈10.4 hours)
- Driving time: 22,803 seconds (≈6.3 hours)
- Service time: 14,700 seconds (≈4.1 hours)
See the following snippet for the full problem solution:
Click to expand/collapse the sample JSON
{
"statistic": {
"cost": 260.517,
"distance": 175511,
"duration": 37503,
"times": {
"driving": 22803,
"serving": 14700,
"waiting": 0,
"stopping": 0,
"break": 0,
"intraStop": 0
},
"intraStopDistance": 0
},
"tours": [
{
"vehicleId": "vehicle_1_1",
"typeId": "vehicle_1",
"stops": [
{
"time": {
"arrival": "2024-06-24T06:00:00Z",
"departure": "2024-06-24T06:00:00Z"
},
"load": [
49
],
"activities": [
{
"jobId": "departure",
"type": "departure",
"location": {
"lat": 52.531,
"lng": 13.38461
},
"time": {
"start": "2024-06-24T06:00:00Z",
"end": "2024-06-24T06:00:00Z",
"arrival": "2024-06-24T06:00:00Z"
}
}
],
"location": {
"lat": 52.531,
"lng": 13.38461
},
"distance": 0
},
{
"time": {
"arrival": "2024-06-24T06:01:15Z",
"departure": "2024-06-24T06:06:15Z"
},
"load": [
48
],
"activities": [
{
"jobId": "Job_24",
"type": "delivery",
"location": {
"lat": 52.5293,
"lng": 13.38507204916371
},
"time": {
"start": "2024-06-24T06:01:15Z",
"end": "2024-06-24T06:06:15Z",
"arrival": "2024-06-24T06:01:15Z"
}
}
],
"location": {
"lat": 52.5293,
"lng": 13.38507204916371
},
"distance": 485
},
{
"time": {
"arrival": "2024-06-24T06:09:43Z",
"departure": "2024-06-24T06:14:43Z"
},
"load": [
47
],
"activities": [
{
"jobId": "Job_8",
"type": "delivery",
"location": {
"lat": 52.53213114000045,
"lng": 13.373517153879767
},
"time": {
"start": "2024-06-24T06:09:43Z",
"end": "2024-06-24T06:14:43Z",
"arrival": "2024-06-24T06:09:43Z"
}
}
],
"location": {
"lat": 52.53213114000045,
"lng": 13.373517153879767
},
"distance": 1679
},
{
"time": {
"arrival": "2024-06-24T06:20:38Z",
"departure": "2024-06-24T06:25:38Z"
},
"load": [
46
],
"activities": [
{
"jobId": "Job_10",
"type": "delivery",
"location": {
"lat": 52.5313,
"lng": 13.35356
},
"time": {
"start": "2024-06-24T06:20:38Z",
"end": "2024-06-24T06:25:38Z",
"arrival": "2024-06-24T06:20:38Z"
}
}
],
"location": {
"lat": 52.5313,
"lng": 13.35356
},
"distance": 4551
},
{
"time": {
"arrival": "2024-06-24T06:30:00Z",
"departure": "2024-06-24T06:35:00Z"
},
"load": [
45
],
"activities": [
{
"jobId": "Job_26",
"type": "delivery",
"location": {
"lat": 52.53754,
"lng": 13.34152
},
"time": {
"start": "2024-06-24T06:30:00Z",
"end": "2024-06-24T06:35:00Z",
"arrival": "2024-06-24T06:30:00Z"
}
}
],
"location": {
"lat": 52.53754,
"lng": 13.34152
},
"distance": 6353
},
{
"time": {
"arrival": "2024-06-24T06:41:45Z",
"departure": "2024-06-24T06:46:45Z"
},
"load": [
44
],
"activities": [
{
"jobId": "Job_3",
"type": "delivery",
"location": {
"lat": 52.51635175288175,
"lng": 13.343661020679573
},
"time": {
"start": "2024-06-24T06:41:45Z",
"end": "2024-06-24T06:46:45Z",
"arrival": "2024-06-24T06:41:45Z"
}
}
],
"location": {
"lat": 52.51635175288175,
"lng": 13.343661020679573
},
"distance": 9645
},
{
"time": {
"arrival": "2024-06-24T06:51:54Z",
"departure": "2024-06-24T06:56:54Z"
},
"load": [
43
],
"activities": [
{
"jobId": "Job_16",
"type": "delivery",
"location": {
"lat": 52.5102,
"lng": 13.3444
},
"time": {
"start": "2024-06-24T06:51:54Z",
"end": "2024-06-24T06:56:54Z",
"arrival": "2024-06-24T06:51:54Z"
}
}
],
"location": {
"lat": 52.5102,
"lng": 13.3444
},
"distance": 11936
},
{
"time": {
"arrival": "2024-06-24T07:01:03Z",
"departure": "2024-06-24T07:06:03Z"
},
"load": [
42
],
"activities": [
{
"jobId": "Job_38",
"type": "delivery",
"location": {
"lat": 52.50488105730338,
"lng": 13.355333507786808
},
"time": {
"start": "2024-06-24T07:01:03Z",
"end": "2024-06-24T07:06:03Z",
"arrival": "2024-06-24T07:01:03Z"
}
}
],
"location": {
"lat": 52.50488105730338,
"lng": 13.355333507786808
},
"distance": 13376
},
{
"time": {
"arrival": "2024-06-24T07:11:59Z",
"departure": "2024-06-24T07:16:59Z"
},
"load": [
41
],
"activities": [
{
"jobId": "Job_41",
"type": "delivery",
"location": {
"lat": 52.51508491755749,
"lng": 13.38
},
"time": {
"start": "2024-06-24T07:11:59Z",
"end": "2024-06-24T07:16:59Z",
"arrival": "2024-06-24T07:11:59Z"
}
}
],
"location": {
"lat": 52.51508491755749,
"lng": 13.38
},
"distance": 16161
},
{
"time": {
"arrival": "2024-06-24T07:24:31Z",
"departure": "2024-06-24T07:29:31Z"
},
"load": [
40
],
"activities": [
{
"jobId": "Job_21",
"type": "delivery",
"location": {
"lat": 52.49949154428338,
"lng": 13.40857671284082
},
"time": {
"start": "2024-06-24T07:24:31Z",
"end": "2024-06-24T07:29:31Z",
"arrival": "2024-06-24T07:24:31Z"
}
}
],
"location": {
"lat": 52.49949154428338,
"lng": 13.40857671284082
},
"distance": 19563
},
{
"time": {
"arrival": "2024-06-24T07:37:08Z",
"departure": "2024-06-24T07:42:08Z"
},
"load": [
39
],
"activities": [
{
"jobId": "Job_27",
"type": "delivery",
"location": {
"lat": 52.48811100200862,
"lng": 13.376
},
"time": {
"start": "2024-06-24T07:37:08Z",
"end": "2024-06-24T07:42:08Z",
"arrival": "2024-06-24T07:37:08Z"
}
}
],
"location": {
"lat": 52.48811100200862,
"lng": 13.376
},
"distance": 22884
},
{
"time": {
"arrival": "2024-06-24T07:46:09Z",
"departure": "2024-06-24T07:51:09Z"
},
"load": [
38
],
"activities": [
{
"jobId": "Job_45",
"type": "delivery",
"location": {
"lat": 52.486517527979494,
"lng": 13.382057792236846
},
"time": {
"start": "2024-06-24T07:46:09Z",
"end": "2024-06-24T07:51:09Z",
"arrival": "2024-06-24T07:46:09Z"
}
}
],
"location": {
"lat": 52.486517527979494,
"lng": 13.382057792236846
},
"distance": 24096
},
{
"time": {
"arrival": "2024-06-24T07:55:19Z",
"departure": "2024-06-24T08:00:19Z"
},
"load": [
37
],
"activities": [
{
"jobId": "Job_34",
"type": "delivery",
"location": {
"lat": 52.48446152479127,
"lng": 13.392004256315916
},
"time": {
"start": "2024-06-24T07:55:19Z",
"end": "2024-06-24T08:00:19Z",
"arrival": "2024-06-24T07:55:19Z"
}
}
],
"location": {
"lat": 52.48446152479127,
"lng": 13.392004256315916
},
"distance": 25246
},
{
"time": {
"arrival": "2024-06-24T08:07:45Z",
"departure": "2024-06-24T08:12:45Z"
},
"load": [
36
],
"activities": [
{
"jobId": "Job_35",
"type": "delivery",
"location": {
"lat": 52.4822032946248,
"lng": 13.391214601891551
},
"time": {
"start": "2024-06-24T08:07:45Z",
"end": "2024-06-24T08:12:45Z",
"arrival": "2024-06-24T08:07:45Z"
}
}
],
"location": {
"lat": 52.4822032946248,
"lng": 13.391214601891551
},
"distance": 26874
},
{
"time": {
"arrival": "2024-06-24T08:23:03Z",
"departure": "2024-06-24T08:28:03Z"
},
"load": [
35
],
"activities": [
{
"jobId": "Job_28",
"type": "delivery",
"location": {
"lat": 52.4745,
"lng": 13.42
},
"time": {
"start": "2024-06-24T08:23:03Z",
"end": "2024-06-24T08:28:03Z",
"arrival": "2024-06-24T08:23:03Z"
}
}
],
"location": {
"lat": 52.4745,
"lng": 13.42
},
"distance": 30081
},
{
"time": {
"arrival": "2024-06-24T08:37:26Z",
"departure": "2024-06-24T08:42:26Z"
},
"load": [
34
],
"activities": [
{
"jobId": "Job_15",
"type": "delivery",
"location": {
"lat": 52.44459785400424,
"lng": 13.42729037972278
},
"time": {
"start": "2024-06-24T08:37:26Z",
"end": "2024-06-24T08:42:26Z",
"arrival": "2024-06-24T08:37:26Z"
}
}
],
"location": {
"lat": 52.44459785400424,
"lng": 13.42729037972278
},
"distance": 34569
},
{
"time": {
"arrival": "2024-06-24T08:50:35Z",
"departure": "2024-06-24T08:55:35Z"
},
"load": [
33
],
"activities": [
{
"jobId": "Job_23",
"type": "delivery",
"location": {
"lat": 52.4312,
"lng": 13.45023
},
"time": {
"start": "2024-06-24T08:50:35Z",
"end": "2024-06-24T08:55:35Z",
"arrival": "2024-06-24T08:50:35Z"
}
}
],
"location": {
"lat": 52.4312,
"lng": 13.45023
},
"distance": 38880
},
{
"time": {
"arrival": "2024-06-24T09:08:51Z",
"departure": "2024-06-24T09:13:51Z"
},
"load": [
32
],
"activities": [
{
"jobId": "Job_12",
"type": "delivery",
"location": {
"lat": 52.4329271708958,
"lng": 13.376558539227483
},
"time": {
"start": "2024-06-24T09:08:51Z",
"end": "2024-06-24T09:13:51Z",
"arrival": "2024-06-24T09:08:51Z"
}
}
],
"location": {
"lat": 52.4329271708958,
"lng": 13.376558539227483
},
"distance": 46485
},
{
"time": {
"arrival": "2024-06-24T09:22:08Z",
"departure": "2024-06-24T09:27:08Z"
},
"load": [
31
],
"activities": [
{
"jobId": "Job_7",
"type": "delivery",
"location": {
"lat": 52.439442845393685,
"lng": 13.336118100685782
},
"time": {
"start": "2024-06-24T09:22:08Z",
"end": "2024-06-24T09:27:08Z",
"arrival": "2024-06-24T09:22:08Z"
}
}
],
"location": {
"lat": 52.439442845393685,
"lng": 13.336118100685782
},
"distance": 50793
},
{
"time": {
"arrival": "2024-06-24T09:33:19Z",
"departure": "2024-06-24T09:38:19Z"
},
"load": [
30
],
"activities": [
{
"jobId": "Job_11",
"type": "delivery",
"location": {
"lat": 52.457844833248835,
"lng": 13.322525701671736
},
"time": {
"start": "2024-06-24T09:33:19Z",
"end": "2024-06-24T09:38:19Z",
"arrival": "2024-06-24T09:33:19Z"
}
}
],
"location": {
"lat": 52.457844833248835,
"lng": 13.322525701671736
},
"distance": 53553
},
{
"time": {
"arrival": "2024-06-24T09:41:15Z",
"departure": "2024-06-24T09:46:15Z"
},
"load": [
29
],
"activities": [
{
"jobId": "Job_6",
"type": "delivery",
"location": {
"lat": 52.45810373923444,
"lng": 13.3318089424755
},
"time": {
"start": "2024-06-24T09:41:15Z",
"end": "2024-06-24T09:46:15Z",
"arrival": "2024-06-24T09:41:15Z"
}
}
],
"location": {
"lat": 52.45810373923444,
"lng": 13.3318089424755
},
"distance": 54741
},
{
"time": {
"arrival": "2024-06-24T09:55:11Z",
"departure": "2024-06-24T10:00:11Z"
},
"load": [
28
],
"activities": [
{
"jobId": "Job_43",
"type": "delivery",
"location": {
"lat": 52.4594508034092,
"lng": 13.396015195980404
},
"time": {
"start": "2024-06-24T09:55:11Z",
"end": "2024-06-24T10:00:11Z",
"arrival": "2024-06-24T09:55:11Z"
}
}
],
"location": {
"lat": 52.4594508034092,
"lng": 13.396015195980404
},
"distance": 59500
},
{
"time": {
"arrival": "2024-06-24T10:02:34Z",
"departure": "2024-06-24T10:07:34Z"
},
"load": [
27
],
"activities": [
{
"jobId": "Job_4",
"type": "delivery",
"location": {
"lat": 52.456,
"lng": 13.403260583257188
},
"time": {
"start": "2024-06-24T10:02:34Z",
"end": "2024-06-24T10:07:34Z",
"arrival": "2024-06-24T10:02:34Z"
}
}
],
"location": {
"lat": 52.456,
"lng": 13.403260583257188
},
"distance": 60405
},
{
"time": {
"arrival": "2024-06-24T10:20:37Z",
"departure": "2024-06-24T10:25:37Z"
},
"load": [
26
],
"activities": [
{
"jobId": "Job_37",
"type": "delivery",
"location": {
"lat": 52.47651505101506,
"lng": 13.459944175857151
},
"time": {
"start": "2024-06-24T10:20:37Z",
"end": "2024-06-24T10:25:37Z",
"arrival": "2024-06-24T10:20:37Z"
}
}
],
"location": {
"lat": 52.47651505101506,
"lng": 13.459944175857151
},
"distance": 66754
},
{
"time": {
"arrival": "2024-06-24T10:31:48Z",
"departure": "2024-06-24T10:36:48Z"
},
"load": [
25
],
"activities": [
{
"jobId": "Job_9",
"type": "delivery",
"location": {
"lat": 52.4823,
"lng": 13.4703
},
"time": {
"start": "2024-06-24T10:31:48Z",
"end": "2024-06-24T10:36:48Z",
"arrival": "2024-06-24T10:31:48Z"
}
}
],
"location": {
"lat": 52.4823,
"lng": 13.4703
},
"distance": 69149
},
{
"time": {
"arrival": "2024-06-24T10:46:59Z",
"departure": "2024-06-24T10:51:59Z"
},
"load": [
24
],
"activities": [
{
"jobId": "Job_13",
"type": "delivery",
"location": {
"lat": 52.48128598928299,
"lng": 13.4944
},
"time": {
"start": "2024-06-24T10:46:59Z",
"end": "2024-06-24T10:51:59Z",
"arrival": "2024-06-24T10:46:59Z"
}
}
],
"location": {
"lat": 52.48128598928299,
"lng": 13.4944
},
"distance": 71277
},
{
"time": {
"arrival": "2024-06-24T11:06:34Z",
"departure": "2024-06-24T11:11:34Z"
},
"load": [
23
],
"activities": [
{
"jobId": "Job_22",
"type": "delivery",
"location": {
"lat": 52.465255531970406,
"lng": 13.511537556934355
},
"time": {
"start": "2024-06-24T11:06:34Z",
"end": "2024-06-24T11:11:34Z",
"arrival": "2024-06-24T11:06:34Z"
}
}
],
"location": {
"lat": 52.465255531970406,
"lng": 13.511537556934355
},
"distance": 75931
},
{
"time": {
"arrival": "2024-06-24T11:19:49Z",
"departure": "2024-06-24T11:24:49Z"
},
"load": [
22
],
"activities": [
{
"jobId": "Job_31",
"type": "delivery",
"location": {
"lat": 52.4779,
"lng": 13.5012
},
"time": {
"start": "2024-06-24T11:19:49Z",
"end": "2024-06-24T11:24:49Z",
"arrival": "2024-06-24T11:19:49Z"
}
}
],
"location": {
"lat": 52.4779,
"lng": 13.5012
},
"distance": 78634
},
{
"time": {
"arrival": "2024-06-24T11:29:43Z",
"departure": "2024-06-24T11:34:43Z"
},
"load": [
21
],
"activities": [
{
"jobId": "Job_17",
"type": "delivery",
"location": {
"lat": 52.48903177127663,
"lng": 13.495944342993262
},
"time": {
"start": "2024-06-24T11:29:43Z",
"end": "2024-06-24T11:34:43Z",
"arrival": "2024-06-24T11:29:43Z"
}
}
],
"location": {
"lat": 52.48903177127663,
"lng": 13.495944342993262
},
"distance": 80000
},
{
"time": {
"arrival": "2024-06-24T11:48:45Z",
"departure": "2024-06-24T11:53:45Z"
},
"load": [
20
],
"activities": [
{
"jobId": "Job_44",
"type": "delivery",
"location": {
"lat": 52.54433793446157,
"lng": 13.49579242116612
},
"time": {
"start": "2024-06-24T11:48:45Z",
"end": "2024-06-24T11:53:45Z",
"arrival": "2024-06-24T11:48:45Z"
}
}
],
"location": {
"lat": 52.54433793446157,
"lng": 13.49579242116612
},
"distance": 88137
},
{
"time": {
"arrival": "2024-06-24T11:57:44Z",
"departure": "2024-06-24T12:02:44Z"
},
"load": [
19
],
"activities": [
{
"jobId": "Job_33",
"type": "delivery",
"location": {
"lat": 52.55437436208552,
"lng": 13.503142187091647
},
"time": {
"start": "2024-06-24T11:57:44Z",
"end": "2024-06-24T12:02:44Z",
"arrival": "2024-06-24T11:57:44Z"
}
}
],
"location": {
"lat": 52.55437436208552,
"lng": 13.503142187091647
},
"distance": 89550
},
{
"time": {
"arrival": "2024-06-24T12:09:16Z",
"departure": "2024-06-24T12:14:16Z"
},
"load": [
18
],
"activities": [
{
"jobId": "Job_48",
"type": "delivery",
"location": {
"lat": 52.56223251898173,
"lng": 13.471999398223556
},
"time": {
"start": "2024-06-24T12:09:16Z",
"end": "2024-06-24T12:14:16Z",
"arrival": "2024-06-24T12:09:16Z"
}
}
],
"location": {
"lat": 52.56223251898173,
"lng": 13.471999398223556
},
"distance": 93547
},
{
"time": {
"arrival": "2024-06-24T12:22:09Z",
"departure": "2024-06-24T12:27:09Z"
},
"load": [
17
],
"activities": [
{
"jobId": "Job_32",
"type": "delivery",
"location": {
"lat": 52.60066027234286,
"lng": 13.502741838681835
},
"time": {
"start": "2024-06-24T12:22:09Z",
"end": "2024-06-24T12:27:09Z",
"arrival": "2024-06-24T12:22:09Z"
}
}
],
"location": {
"lat": 52.60066027234286,
"lng": 13.502741838681835
},
"distance": 99208
},
{
"time": {
"arrival": "2024-06-24T12:40:06Z",
"departure": "2024-06-24T12:45:06Z"
},
"load": [
16
],
"activities": [
{
"jobId": "Job_42",
"type": "delivery",
"location": {
"lat": 52.63313572894435,
"lng": 13.506488581249922
},
"time": {
"start": "2024-06-24T12:40:06Z",
"end": "2024-06-24T12:45:06Z",
"arrival": "2024-06-24T12:40:06Z"
}
}
],
"location": {
"lat": 52.63313572894435,
"lng": 13.506488581249922
},
"distance": 108035
},
{
"time": {
"arrival": "2024-06-24T12:49:39Z",
"departure": "2024-06-24T12:54:39Z"
},
"load": [
15
],
"activities": [
{
"jobId": "Job_25",
"type": "delivery",
"location": {
"lat": 52.6378,
"lng": 13.48675
},
"time": {
"start": "2024-06-24T12:49:39Z",
"end": "2024-06-24T12:54:39Z",
"arrival": "2024-06-24T12:49:39Z"
}
}
],
"location": {
"lat": 52.6378,
"lng": 13.48675
},
"distance": 109594
},
{
"time": {
"arrival": "2024-06-24T13:03:35Z",
"departure": "2024-06-24T13:08:35Z"
},
"load": [
14
],
"activities": [
{
"jobId": "Job_36",
"type": "delivery",
"location": {
"lat": 52.60842932011795,
"lng": 13.46922174529483
},
"time": {
"start": "2024-06-24T13:03:35Z",
"end": "2024-06-24T13:08:35Z",
"arrival": "2024-06-24T13:03:35Z"
}
}
],
"location": {
"lat": 52.60842932011795,
"lng": 13.46922174529483
},
"distance": 114832
},
{
"time": {
"arrival": "2024-06-24T13:13:48Z",
"departure": "2024-06-24T13:18:48Z"
},
"load": [
13
],
"activities": [
{
"jobId": "Job_49",
"type": "delivery",
"location": {
"lat": 52.595251760429065,
"lng": 13.456764166098564
},
"time": {
"start": "2024-06-24T13:13:48Z",
"end": "2024-06-24T13:18:48Z",
"arrival": "2024-06-24T13:13:48Z"
}
}
],
"location": {
"lat": 52.595251760429065,
"lng": 13.456764166098564
},
"distance": 117676
},
{
"time": {
"arrival": "2024-06-24T13:34:30Z",
"departure": "2024-06-24T13:39:30Z"
},
"load": [
12
],
"activities": [
{
"jobId": "Job_2",
"type": "delivery",
"location": {
"lat": 52.62738533184079,
"lng": 13.3789
},
"time": {
"start": "2024-06-24T13:34:30Z",
"end": "2024-06-24T13:39:30Z",
"arrival": "2024-06-24T13:34:30Z"
}
}
],
"location": {
"lat": 52.62738533184079,
"lng": 13.3789
},
"distance": 126505
},
{
"time": {
"arrival": "2024-06-24T13:47:43Z",
"departure": "2024-06-24T13:52:43Z"
},
"load": [
11
],
"activities": [
{
"jobId": "Job_18",
"type": "delivery",
"location": {
"lat": 52.62863,
"lng": 13.3621182
},
"time": {
"start": "2024-06-24T13:47:43Z",
"end": "2024-06-24T13:52:43Z",
"arrival": "2024-06-24T13:47:43Z"
}
}
],
"location": {
"lat": 52.62863,
"lng": 13.3621182
},
"distance": 129219
},
{
"time": {
"arrival": "2024-06-24T13:55:37Z",
"departure": "2024-06-24T14:00:37Z"
},
"load": [
10
],
"activities": [
{
"jobId": "Job_5",
"type": "delivery",
"location": {
"lat": 52.63256,
"lng": 13.37322
},
"time": {
"start": "2024-06-24T13:55:37Z",
"end": "2024-06-24T14:00:37Z",
"arrival": "2024-06-24T13:55:37Z"
}
}
],
"location": {
"lat": 52.63256,
"lng": 13.37322
},
"distance": 130271
},
{
"time": {
"arrival": "2024-06-24T14:09:51Z",
"departure": "2024-06-24T14:14:51Z"
},
"load": [
9
],
"activities": [
{
"jobId": "Job_40",
"type": "delivery",
"location": {
"lat": 52.6543,
"lng": 13.39278
},
"time": {
"start": "2024-06-24T14:09:51Z",
"end": "2024-06-24T14:14:51Z",
"arrival": "2024-06-24T14:09:51Z"
}
}
],
"location": {
"lat": 52.6543,
"lng": 13.39278
},
"distance": 134959
},
{
"time": {
"arrival": "2024-06-24T14:19:51Z",
"departure": "2024-06-24T14:24:51Z"
},
"load": [
8
],
"activities": [
{
"jobId": "Job_19",
"type": "delivery",
"location": {
"lat": 52.65831976801964,
"lng": 13.359646771531477
},
"time": {
"start": "2024-06-24T14:19:51Z",
"end": "2024-06-24T14:24:51Z",
"arrival": "2024-06-24T14:19:51Z"
}
}
],
"location": {
"lat": 52.65831976801964,
"lng": 13.359646771531477
},
"distance": 137679
},
{
"time": {
"arrival": "2024-06-24T14:31:21Z",
"departure": "2024-06-24T14:36:21Z"
},
"load": [
7
],
"activities": [
{
"jobId": "Job_1",
"type": "delivery",
"location": {
"lat": 52.63329,
"lng": 13.3138
},
"time": {
"start": "2024-06-24T14:31:21Z",
"end": "2024-06-24T14:36:21Z",
"arrival": "2024-06-24T14:31:21Z"
}
}
],
"location": {
"lat": 52.63329,
"lng": 13.3138
},
"distance": 142551
},
{
"time": {
"arrival": "2024-06-24T14:42:19Z",
"departure": "2024-06-24T14:47:19Z"
},
"load": [
6
],
"activities": [
{
"jobId": "Job_20",
"type": "delivery",
"location": {
"lat": 52.61955,
"lng": 13.29845
},
"time": {
"start": "2024-06-24T14:42:19Z",
"end": "2024-06-24T14:47:19Z",
"arrival": "2024-06-24T14:42:19Z"
}
}
],
"location": {
"lat": 52.61955,
"lng": 13.29845
},
"distance": 145262
},
{
"time": {
"arrival": "2024-06-24T14:55:43Z",
"departure": "2024-06-24T15:00:43Z"
},
"load": [
5
],
"activities": [
{
"jobId": "Job_39",
"type": "delivery",
"location": {
"lat": 52.6029,
"lng": 13.3113
},
"time": {
"start": "2024-06-24T14:55:43Z",
"end": "2024-06-24T15:00:43Z",
"arrival": "2024-06-24T14:55:43Z"
}
}
],
"location": {
"lat": 52.6029,
"lng": 13.3113
},
"distance": 148201
},
{
"time": {
"arrival": "2024-06-24T15:08:27Z",
"departure": "2024-06-24T15:13:27Z"
},
"load": [
4
],
"activities": [
{
"jobId": "Job_14",
"type": "delivery",
"location": {
"lat": 52.58038089373736,
"lng": 13.30447922221816
},
"time": {
"start": "2024-06-24T15:08:27Z",
"end": "2024-06-24T15:13:27Z",
"arrival": "2024-06-24T15:08:27Z"
}
}
],
"location": {
"lat": 52.58038089373736,
"lng": 13.30447922221816
},
"distance": 151993
},
{
"time": {
"arrival": "2024-06-24T15:20:45Z",
"departure": "2024-06-24T15:25:45Z"
},
"load": [
3
],
"activities": [
{
"jobId": "Job_30",
"type": "delivery",
"location": {
"lat": 52.60079217247425,
"lng": 13.339813254226156
},
"time": {
"start": "2024-06-24T15:20:45Z",
"end": "2024-06-24T15:25:45Z",
"arrival": "2024-06-24T15:20:45Z"
}
}
],
"location": {
"lat": 52.60079217247425,
"lng": 13.339813254226156
},
"distance": 155888
},
{
"time": {
"arrival": "2024-06-24T15:31:23Z",
"departure": "2024-06-24T15:36:23Z"
},
"load": [
2
],
"activities": [
{
"jobId": "Job_47",
"type": "delivery",
"location": {
"lat": 52.591995183321515,
"lng": 13.36000789424169
},
"time": {
"start": "2024-06-24T15:31:23Z",
"end": "2024-06-24T15:36:23Z",
"arrival": "2024-06-24T15:31:23Z"
}
}
],
"location": {
"lat": 52.591995183321515,
"lng": 13.36000789424169
},
"distance": 158140
},
{
"time": {
"arrival": "2024-06-24T15:48:29Z",
"departure": "2024-06-24T15:53:29Z"
},
"load": [
1
],
"activities": [
{
"jobId": "Job_29",
"type": "delivery",
"location": {
"lat": 52.58884270031872,
"lng": 13.352068415230912
},
"time": {
"start": "2024-06-24T15:48:29Z",
"end": "2024-06-24T15:53:29Z",
"arrival": "2024-06-24T15:48:29Z"
}
}
],
"location": {
"lat": 52.58884270031872,
"lng": 13.352068415230912
},
"distance": 162761
},
{
"time": {
"arrival": "2024-06-24T16:11:25Z",
"departure": "2024-06-24T16:16:25Z"
},
"load": [
0
],
"activities": [
{
"jobId": "Job_46",
"type": "delivery",
"location": {
"lat": 52.55606147412602,
"lng": 13.41517487839967
},
"time": {
"start": "2024-06-24T16:11:25Z",
"end": "2024-06-24T16:16:25Z",
"arrival": "2024-06-24T16:11:25Z"
}
}
],
"location": {
"lat": 52.55606147412602,
"lng": 13.41517487839967
},
"distance": 170966
},
{
"time": {
"arrival": "2024-06-24T16:25:03Z",
"departure": "2024-06-24T16:25:03Z"
},
"load": [
0
],
"activities": [
{
"jobId": "arrival",
"type": "arrival",
"location": {
"lat": 52.531,
"lng": 13.38461
},
"time": {
"start": "2024-06-24T16:25:03Z",
"end": "2024-06-24T16:25:03Z",
"arrival": "2024-06-24T16:25:03Z"
}
}
],
"location": {
"lat": 52.531,
"lng": 13.38461
},
"distance": 175511
}
],
"statistic": {
"cost": 260.517,
"distance": 175511,
"duration": 37503,
"times": {
"driving": 22803,
"serving": 14700,
"waiting": 0,
"stopping": 0,
"break": 0,
"intraStop": 0
},
"intraStopDistance": 0
},
"shiftIndex": 0
}
]
}Comparison of results
The following table compares the key metrics between fast mode and short mode optimization for the car profile:
| Metric | Fast Mode | Short Mode | Difference |
|---|---|---|---|
| Total cost | 267.88 | 260.52 | -7.36 (2.7% savings) |
| Total distance | 182,668 m (182.7 km) | 175,511 m (175.5 km) | -7,157 m (-7.2 km, 3.9% reduction) |
| Total duration | 37,605 s (10.4 hrs) | 37,503 s (10.4 hrs) | -102 s (-1.7 min, 0.3% reduction) |
Based on the key statistics for the compared tours:
- Short mode achieved 7.2 km less distance traveled, resulting in lower fuel consumption and mileage-based costs
- The total cost decreased by 2.7% due to the reduced distance component
- The
shortmode also achieved a slightly faster total duration (1.7 minutes saved), likely due to more direct routing - Both modes successfully completed all 49 jobs within the shift constraints
The following comparison highlights how the optimization algorithm optimizes routes in a tour, based on the selected mode:
| Fast mode | Short mode |
|---|---|
![]() | ![]() |
Based on the routing decisions for job_39 and job_14, in the fast mode, the optimization algorithm routes the vehicle along a highway for a longer but faster route. In contrast, short mode prioritizes reduced distance, which could lead to potentially prolonged tour, depending on time of day and traffic intensity.
Choose the right mode for your use case
Even though short mode proved slightly more efficient in this comparison, fast mode is suitable for most scenarios. Use short mode when distance-based costs significantly outweigh time-based costs. Consider testing both modes to determine which provides better results for your specific business requirements.
Next steps
- To learn how traffic affects mode calculations, see Understand traffic modes
- For customizing route preferences in both modes, see Use preferred routes with avoid options
- To understand cost optimization, see Optimize tours for cost
- For advanced optimization control, see Use objective functions for specific optimization goals
- To visualize the route differences between modes, see Obtain route polylines for the tour
- For detailed
carprofile specifications, see API Reference
Updated 28 days ago

