Add Optimization
This guide provides a comprehensive walkthrough for creating and optimizing a fleet management solution using the Fleet Management Rest API. You’ll learn how to:
- Add an optimization with custom configuration parameters.
- Define orders with specific details such as time windows, packages, and weights.
- Set up vehicles with constraints like capacity, time windows, and distance limits.
- Visualize the optimized solution on a map.
By the end of this guide, you’ll have a fully functional optimization setup that you can adapt to your specific use case.
How to Use the Sample
When you run the example application:
- An optimization is created and saved in the system.
- The optimized solution, including routes and waypoints, is returned and displayed on a map.
Step-by-Step Guide
Step 1: Create Customers and Orders
Each order must be associated with a customer. You can either:
- Create a new customer and assign it to the order.
- Use an existing customer (refer to the Get Customer example).
Adding Customers
- Initialize Customers: Create twenty
Customerobjects and populate their fields (e.g., name, address, contact details). - Send Request: Call the
Add Customersendpoint to save these customers in the system.
- Method:
POST - Endpoint:
/customers - Headers:
Authorization: YOUR_API_KEYContent-Type: application/json
- URL:
https://fleetmanagement.magiclaneapis.com/v1/customers
If the operation is successful, the Customer object will have its id field populated. If the operation fails, an error code is returned.
Example:
- Request Body:
[
{
"alias": "Customer 1",
"firstName": "Customer1",
"lastName": "Customer1",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer1@example.com",
"phoneNumber": "+12025550180",
"location": [
48.849151,
2.266093
],
"customData": ""
},
{
"alias": "Customer 2",
"firstName": "Customer2",
"lastName": "Customer2",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer2@example.com",
"phoneNumber": "+12025550181",
"location": [
48.914831,
2.168591
],
"customData": ""
},
{
"alias": "Customer 3",
"firstName": "Customer3",
"lastName": "Customer3",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer3@example.com",
"phoneNumber": "+12025550182",
"location": [
48.898456,
2.359571
],
"customData": ""
},
{
"alias": "Customer 4",
"firstName": "Customer4",
"lastName": "Customer4",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer4@example.com",
"phoneNumber": "+12025550183",
"location": [
48.891034,
2.376929
],
"customData": ""
},
{
"alias": "Customer 5",
"firstName": "Customer5",
"lastName": "Customer5",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer5@example.com",
"phoneNumber": "+12025550184",
"location": [
48.928086,
2.217675
],
"customData": ""
},
{
"alias": "Customer 6",
"firstName": "Customer6",
"lastName": "Customer6",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer6@example.com",
"phoneNumber": "+12025550185",
"location": [
48.89258,
2.081645
],
"customData": ""
},
{
"alias": "Customer 7",
"firstName": "Customer7",
"lastName": "Customer7",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer7@example.com",
"phoneNumber": "+12025550186",
"location": [
48.891779,
2.149101
],
"customData": ""
},
{
"alias": "Customer 8",
"firstName": "Customer8",
"lastName": "Customer8",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer8@example.com",
"phoneNumber": "+12025550187",
"location": [
48.86921,
2.283707
],
"customData": ""
},
{
"alias": "Customer 9",
"firstName": "Customer9",
"lastName": "Customer9",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer9@example.com",
"phoneNumber": "+12025550188",
"location": [
48.897715,
2.324124
],
"customData": ""
},
{
"alias": "Customer 10",
"firstName": "Customer10",
"lastName": "Customer10",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer10@example.com",
"phoneNumber": "+12025550189",
"location": [
48.802124,
2.157246
],
"customData": ""
},
{
"alias": "Customer 11",
"firstName": "Customer11",
"lastName": "Customer11",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer11@example.com",
"phoneNumber": "+120255501810",
"location": [
48.772667,
2.150946
],
"customData": ""
},
{
"alias": "Customer 12",
"firstName": "Customer12",
"lastName": "Customer12",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer12@example.com",
"phoneNumber": "+120255501811",
"location": [
48.761058,
2.077915
],
"customData": ""
},
{
"alias": "Customer 13",
"firstName": "Customer13",
"lastName": "Customer13",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer13@example.com",
"phoneNumber": "+120255501812",
"location": [
48.900701,
1.999858
],
"customData": ""
},
{
"alias": "Customer 14",
"firstName": "Customer14",
"lastName": "Customer14",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer14@example.com",
"phoneNumber": "+120255501813",
"location": [
48.868801,
2.035137
],
"customData": ""
},
{
"alias": "Customer 15",
"firstName": "Customer15",
"lastName": "Customer15",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer15@example.com",
"phoneNumber": "+120255501814",
"location": [
48.873694,
2.358232
],
"customData": ""
},
{
"alias": "Customer 16",
"firstName": "Customer16",
"lastName": "Customer16",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer16@example.com",
"phoneNumber": "+120255501815",
"location": [
48.800876,
2.047703
],
"customData": ""
},
{
"alias": "Customer 17",
"firstName": "Customer17",
"lastName": "Customer17",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer17@example.com",
"phoneNumber": "+120255501816",
"location": [
48.828673,
1.954428
],
"customData": ""
},
{
"alias": "Customer 18",
"firstName": "Customer18",
"lastName": "Customer18",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer18@example.com",
"phoneNumber": "+120255501817",
"location": [
48.870529,
1.966413
],
"customData": ""
},
{
"alias": "Customer 19",
"firstName": "Customer19",
"lastName": "Customer19",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer19@example.com",
"phoneNumber": "+120255501818",
"location": [
48.885094,
2.298155
],
"customData": ""
},
{
"alias": "Customer 20",
"firstName": "Customer20",
"lastName": "Customer20",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer20@example.com",
"phoneNumber": "+120255501819",
"location": [
48.970061,
2.199346
],
"customData": ""
}
]
- Response Body: (error code
200)
[
{
"id": 1791105,
"alias": "Customer 1",
"firstName": "Customer1",
"lastName": "Customer1",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer1@example.com",
"phoneNumber": "+12025550180",
"location": [
48.849151,
2.266093
],
"customData": ""
},
{
"id": 1791104,
"alias": "Customer 2",
"firstName": "Customer2",
"lastName": "Customer2",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer2@example.com",
"phoneNumber": "+12025550181",
"location": [
48.914831,
2.168591
],
"customData": ""
},
{
"id": 1791103,
"alias": "Customer 3",
"firstName": "Customer3",
"lastName": "Customer3",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer3@example.com",
"phoneNumber": "+12025550182",
"location": [
48.898456,
2.359571
],
"customData": ""
},
{
"id": 1791102,
"alias": "Customer 4",
"firstName": "Customer4",
"lastName": "Customer4",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer4@example.com",
"phoneNumber": "+12025550183",
"location": [
48.891034,
2.376929
],
"customData": ""
},
{
"id": 1791101,
"alias": "Customer 5",
"firstName": "Customer5",
"lastName": "Customer5",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer5@example.com",
"phoneNumber": "+12025550184",
"location": [
48.928086,
2.217675
],
"customData": ""
},
{
"id": 1791100,
"alias": "Customer 6",
"firstName": "Customer6",
"lastName": "Customer6",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer6@example.com",
"phoneNumber": "+12025550185",
"location": [
48.89258,
2.081645
],
"customData": ""
},
{
"id": 1791099,
"alias": "Customer 7",
"firstName": "Customer7",
"lastName": "Customer7",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer7@example.com",
"phoneNumber": "+12025550186",
"location": [
48.891779,
2.149101
],
"customData": ""
},
{
"id": 1791098,
"alias": "Customer 8",
"firstName": "Customer8",
"lastName": "Customer8",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer8@example.com",
"phoneNumber": "+12025550187",
"location": [
48.86921,
2.283707
],
"customData": ""
},
{
"id": 1791097,
"alias": "Customer 9",
"firstName": "Customer9",
"lastName": "Customer9",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer9@example.com",
"phoneNumber": "+12025550188",
"location": [
48.897715,
2.324124
],
"customData": ""
},
{
"id": 1791096,
"alias": "Customer 10",
"firstName": "Customer10",
"lastName": "Customer10",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer10@example.com",
"phoneNumber": "+12025550189",
"location": [
48.802124,
2.157246
],
"customData": ""
},
{
"id": 1791095,
"alias": "Customer 11",
"firstName": "Customer11",
"lastName": "Customer11",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer11@example.com",
"phoneNumber": "+120255501810",
"location": [
48.772667,
2.150946
],
"customData": ""
},
{
"id": 1791094,
"alias": "Customer 12",
"firstName": "Customer12",
"lastName": "Customer12",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer12@example.com",
"phoneNumber": "+120255501811",
"location": [
48.761058,
2.077915
],
"customData": ""
},
{
"alias": "Customer 13",
"firstName": "Customer13",
"lastName": "Customer13",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer13@example.com",
"phoneNumber": "+120255501812",
"location": [
48.900701,
1.999858
],
"customData": ""
},
{
"alias": "Customer 14",
"firstName": "Customer14",
"lastName": "Customer14",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer14@example.com",
"phoneNumber": "+120255501813",
"location": [
48.868801,
2.035137
],
"customData": ""
},
{
"alias": "Customer 15",
"firstName": "Customer15",
"lastName": "Customer15",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer15@example.com",
"phoneNumber": "+120255501814",
"location": [
48.873694,
2.358232
],
"customData": ""
},
{
"alias": "Customer 16",
"firstName": "Customer16",
"lastName": "Customer16",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer16@example.com",
"phoneNumber": "+120255501815",
"location": [
48.800876,
2.047703
],
"customData": ""
},
{
"alias": "Customer 17",
"firstName": "Customer17",
"lastName": "Customer17",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer17@example.com",
"phoneNumber": "+120255501816",
"location": [
48.828673,
1.954428
],
"customData": ""
},
{
"alias": "Customer 18",
"firstName": "Customer18",
"lastName": "Customer18",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer18@example.com",
"phoneNumber": "+120255501817",
"location": [
48.870529,
1.966413
],
"customData": ""
},
{
"alias": "Customer 19",
"firstName": "Customer19",
"lastName": "Customer19",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer19@example.com",
"phoneNumber": "+120255501818",
"location": [
48.885094,
2.298155
],
"customData": ""
},
{
"alias": "Customer 20",
"firstName": "Customer20",
"lastName": "Customer20",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer20@example.com",
"phoneNumber": "+120255501819",
"location": [
48.970061,
2.199346
],
"customData": ""
}
]
Adding Orders
- Initialize Orders: Create twenty
Orderobjects and associate each with a customer. Populate fields such as time windows, package details, and weights. - Send Request: Call the
Add Ordersendpoint to save these orders in the system.
- Method:
POST - Endpoint:
/orders - Headers:
Authorization: YOUR_API_KEYContent-Type: application/json
- URL:
https://fleetmanagement.magiclaneapis.com/v1/orders
If the operation is successful, the Order object will have its id field populated. If the operation fails, an error code is returned.
Example:
- Request Body:
[
{
"customerId": 1791105,
"location": [
48.849151,
2.266093
],
"alias": "Customer 1",
"firstName": "Customer1",
"lastName": "Customer1",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550180",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 1,
"weight": 2,
"cube": 0.1,
"revenue": 31.2,
"timeWindow": [
420,
1086
],
"serviceTime": 0,
"depotId": 0
},
{
"customerId": 1791104,
"location": [
48.914831,
2.168591
],
"alias": "Customer 2",
"firstName": "Customer2",
"lastName": "Customer2",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550181",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 1,
"weight": 1.1,
"cube": 0.1,
"revenue": 24.5,
"timeWindow": [
420,
1086
],
"serviceTime": 0,
"depotId": 0
},
{
"customerId": 1791103,
"location": [
48.898456,
2.359571
],
"alias": "Customer 3",
"firstName": "Customer3",
"lastName": "Customer3",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550182",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 3,
"weight": 5.1,
"cube": 0.5,
"revenue": 12,
"timeWindow": [
500,
1020
],
"serviceTime": 0,
"depotId": 0
},
{
"customerId": 1791102,
"location": [
48.891034,
2.376929
],
"alias": "Customer 4",
"firstName": "Customer4",
"lastName": "Customer4",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550183",
"customData": "",
"type": 1,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 8,
"weight": 15.4,
"cube": 0.8,
"revenue": 2.7,
"timeWindow": [
430,
1036
],
"serviceTime": 0,
"depotId": 0
},
{
"customerId": 1791101,
"location": [
48.928086,
2.217675
],
"alias": "Customer 5",
"firstName": "Customer5",
"lastName": "Customer5",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550184",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 9,
"weight": 16.2,
"cube": 0.4,
"revenue": 7.5,
"timeWindow": [
480,
1086
],
"serviceTime": 0,
"depotId": 0
},
{
"customerId": 1791100,
"location": [
48.89258,
2.081645
],
"alias": "Customer 6",
"firstName": "Customer6",
"lastName": "Customer6",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550185",
"customData": "",
"type": 1,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 9,
"weight": 13.5,
"cube": 1.7,
"revenue": 10,
"timeWindow": [
350,
1053
],
"serviceTime": 0,
"depotId": 0
},
{
"customerId": 1791099,
"location": [
48.891779,
2.149101
],
"alias": "Customer 7",
"firstName": "Customer7",
"lastName": "Customer7",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550186",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 5,
"weight": 7.5,
"cube": 1.2,
"revenue": 13.4,
"timeWindow": [
540,
1020
],
"serviceTime": 0,
"depotId": 0
},
{
"customerId": 1791098,
"location": [
48.86921,
2.283707
],
"alias": "Customer 8",
"firstName": "Customer8",
"lastName": "Customer8",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550187",
"customData": "",
"type": 1,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 11,
"weight": 12.1,
"cube": 0.6,
"revenue": 14.7,
"timeWindow": [
500,
1086
],
"serviceTime": 0,
"depotId": 0
},
{
"customerId": 1791097,
"location": [
48.897715,
2.324124
],
"alias": "Customer 9",
"firstName": "Customer9",
"lastName": "Customer9",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550188",
"customData": "",
"type": 1,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 6,
"weight": 5.2,
"cube": 1.5,
"revenue": 2.9,
"timeWindow": [
380,
1070
],
"serviceTime": 0,
"depotId": 0
},
{
"customerId": 1791096,
"location": [
48.802124,
2.157246
],
"alias": "Customer 10",
"firstName": "Customer10",
"lastName": "Customer10",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550189",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 13,
"weight": 6.3,
"cube": 0.5,
"revenue": 8.1,
"timeWindow": [
400,
1053
],
"serviceTime": 0,
"depotId": 0
},
{
"customerId": 1791095,
"location": [
48.772667,
2.150946
],
"alias": "Customer 11",
"firstName": "Customer11",
"lastName": "Customer11",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501810",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 10,
"weight": 8,
"cube": 0.1,
"revenue": 6.2,
"timeWindow": [
430,
1020
],
"serviceTime": 0,
"depotId": 0
},
{
"customerId": 1791094,
"location": [
48.761058,
2.077915
],
"alias": "Customer 12",
"firstName": "Customer12",
"lastName": "Customer12",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501811",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 6,
"weight": 4.8,
"cube": 1.5,
"revenue": 2.3,
"timeWindow": [
430,
1020
],
"serviceTime": 0,
"depotId": 0
},
{
"location": [
48.900701,
1.999858
],
"alias": "Customer 13",
"firstName": "Customer13",
"lastName": "Customer13",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501812",
"customData": "",
"type": 1,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 2,
"weight": 1.2,
"cube": 0.5,
"revenue": 12.1,
"timeWindow": [
350,
1053
],
"serviceTime": 0,
"depotId": 0
},
{
"location": [
48.868801,
2.035137
],
"alias": "Customer 14",
"firstName": "Customer14",
"lastName": "Customer14",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501813",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 5,
"weight": 2.3,
"cube": 0.2,
"revenue": 5.2,
"timeWindow": [
540,
1020
],
"serviceTime": 0,
"depotId": 0
},
{
"location": [
48.873694,
2.358232
],
"alias": "Customer 15",
"firstName": "Customer15",
"lastName": "Customer15",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501814",
"customData": "",
"type": 1,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 3,
"weight": 2.1,
"cube": 0.3,
"revenue": 6.3,
"timeWindow": [
500,
1086
],
"serviceTime": 0,
"depotId": 0
},
{
"location": [
48.800876,
2.047703
],
"alias": "Customer 16",
"firstName": "Customer16",
"lastName": "Customer16",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501815",
"customData": "",
"type": 1,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 1,
"weight": 3.3,
"cube": 0.1,
"revenue": 8,
"timeWindow": [
380,
1070
],
"serviceTime": 0,
"depotId": 0
},
{
"location": [
48.828673,
1.954428
],
"alias": "Customer 17",
"firstName": "Customer17",
"lastName": "Customer17",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501816",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 4,
"weight": 1.4,
"cube": 0.4,
"revenue": 4.8,
"timeWindow": [
400,
1053
],
"serviceTime": 0,
"depotId": 0
},
{
"location": [
48.870529,
1.966413
],
"alias": "Customer 18",
"firstName": "Customer18",
"lastName": "Customer18",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501817",
"customData": "",
"type": 1,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 8,
"weight": 1.8,
"cube": 1.7,
"revenue": 15.4,
"timeWindow": [
430,
1020
],
"serviceTime": 0,
"depotId": 0
},
{
"location": [
48.885094,
2.298155
],
"alias": "Customer 19",
"firstName": "Customer19",
"lastName": "Customer19",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501818",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 5,
"weight": 1.3,
"cube": 1.2,
"revenue": 16.2,
"timeWindow": [
430,
1020
],
"serviceTime": 0,
"depotId": 0
},
{
"location": [
48.970061,
2.199346
],
"alias": "Customer 20",
"firstName": "Customer20",
"lastName": "Customer20",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501819",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 3,
"weight": 3.5,
"cube": 0.6,
"revenue": 29.1,
"timeWindow": [
435,
1020
],
"serviceTime": 0,
"depotId": 0
}
]
- Response Body: (error code
200)
[
{
"id": 879888,
"creationTimestamp": 1763486363149,
"customerInfo": {
"id": 1791105,
"alias": "Customer 1",
"firstName": "Customer1",
"lastName": "Customer1",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer1@example.com",
"phoneNumber": "+12025550180",
"location": [
48.849151,
2.266093
],
"customData": ""
},
"location": [
48.849151,
2.266093
],
"alias": "Customer 1",
"firstName": "Customer1",
"lastName": "Customer1",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550180",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 1,
"weight": 2,
"cube": 0.1,
"revenue": 31.2,
"timeWindow": [
420,
1086
],
"serviceTime": 0,
"depotId": 0
},
{
"id": 879887,
"creationTimestamp": 1763486363149,
"customerInfo": {
"id": 1791104,
"alias": "Customer 2",
"firstName": "Customer2",
"lastName": "Customer2",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer2@example.com",
"phoneNumber": "+12025550181",
"location": [
48.914831,
2.168591
],
"customData": ""
},
"location": [
48.914831,
2.168591
],
"alias": "Customer 2",
"firstName": "Customer2",
"lastName": "Customer2",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550181",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 1,
"weight": 1.1,
"cube": 0.1,
"revenue": 24.5,
"timeWindow": [
420,
1086
],
"serviceTime": 0,
"depotId": 0
},
{
"id": 879886,
"creationTimestamp": 1763486363149,
"customerInfo": {
"id": 1791103,
"alias": "Customer 3",
"firstName": "Customer3",
"lastName": "Customer3",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer3@example.com",
"phoneNumber": "+12025550182",
"location": [
48.898456,
2.359571
],
"customData": ""
},
"location": [
48.898456,
2.359571
],
"alias": "Customer 3",
"firstName": "Customer3",
"lastName": "Customer3",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550182",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 3,
"weight": 5.1,
"cube": 0.5,
"revenue": 12,
"timeWindow": [
500,
1020
],
"serviceTime": 0,
"depotId": 0
},
{
"id": 879885,
"creationTimestamp": 1763486363149,
"customerInfo": {
"id": 1791102,
"alias": "Customer 4",
"firstName": "Customer4",
"lastName": "Customer4",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer4@example.com",
"phoneNumber": "+12025550183",
"location": [
48.891034,
2.376929
],
"customData": ""
},
"location": [
48.891034,
2.376929
],
"alias": "Customer 4",
"firstName": "Customer4",
"lastName": "Customer4",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550183",
"customData": "",
"type": 1,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 8,
"weight": 15.4,
"cube": 0.8,
"revenue": 2.7,
"timeWindow": [
430,
1036
],
"serviceTime": 0,
"depotId": 0
},
{
"id": 879884,
"creationTimestamp": 1763486363149,
"customerInfo": {
"id": 1791101,
"alias": "Customer 5",
"firstName": "Customer5",
"lastName": "Customer5",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer5@example.com",
"phoneNumber": "+12025550184",
"location": [
48.928086,
2.217675
],
"customData": ""
},
"location": [
48.928086,
2.217675
],
"alias": "Customer 5",
"firstName": "Customer5",
"lastName": "Customer5",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550184",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 9,
"weight": 16.2,
"cube": 0.4,
"revenue": 7.5,
"timeWindow": [
480,
1086
],
"serviceTime": 0,
"depotId": 0
},
{
"id": 879883,
"creationTimestamp": 1763486363149,
"customerInfo": {
"id": 1791100,
"alias": "Customer 6",
"firstName": "Customer6",
"lastName": "Customer6",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer6@example.com",
"phoneNumber": "+12025550185",
"location": [
48.89258,
2.081645
],
"customData": ""
},
"location": [
48.89258,
2.081645
],
"alias": "Customer 6",
"firstName": "Customer6",
"lastName": "Customer6",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550185",
"customData": "",
"type": 1,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 9,
"weight": 13.5,
"cube": 1.7,
"revenue": 10,
"timeWindow": [
350,
1053
],
"serviceTime": 0,
"depotId": 0
},
{
"id": 879882,
"creationTimestamp": 1763486363149,
"customerInfo": {
"id": 1791099,
"alias": "Customer 7",
"firstName": "Customer7",
"lastName": "Customer7",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer7@example.com",
"phoneNumber": "+12025550186",
"location": [
48.891779,
2.149101
],
"customData": ""
},
"location": [
48.891779,
2.149101
],
"alias": "Customer 7",
"firstName": "Customer7",
"lastName": "Customer7",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550186",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 5,
"weight": 7.5,
"cube": 1.2,
"revenue": 13.4,
"timeWindow": [
540,
1020
],
"serviceTime": 0,
"depotId": 0
},
{
"id": 879881,
"creationTimestamp": 1763486363149,
"customerInfo": {
"id": 1791098,
"alias": "Customer 8",
"firstName": "Customer8",
"lastName": "Customer8",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer8@example.com",
"phoneNumber": "+12025550187",
"location": [
48.86921,
2.283707
],
"customData": ""
},
"location": [
48.86921,
2.283707
],
"alias": "Customer 8",
"firstName": "Customer8",
"lastName": "Customer8",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550187",
"customData": "",
"type": 1,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 11,
"weight": 12.1,
"cube": 0.6,
"revenue": 14.7,
"timeWindow": [
500,
1086
],
"serviceTime": 0,
"depotId": 0
},
{
"id": 879880,
"creationTimestamp": 1763486363149,
"customerInfo": {
"id": 1791097,
"alias": "Customer 9",
"firstName": "Customer9",
"lastName": "Customer9",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer9@example.com",
"phoneNumber": "+12025550188",
"location": [
48.897715,
2.324124
],
"customData": ""
},
"location": [
48.897715,
2.324124
],
"alias": "Customer 9",
"firstName": "Customer9",
"lastName": "Customer9",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550188",
"customData": "",
"type": 1,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 6,
"weight": 5.2,
"cube": 1.5,
"revenue": 2.9,
"timeWindow": [
380,
1070
],
"serviceTime": 0,
"depotId": 0
},
{
"id": 879879,
"creationTimestamp": 1763486363149,
"customerInfo": {
"id": 1791096,
"alias": "Customer 10",
"firstName": "Customer10",
"lastName": "Customer10",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer10@example.com",
"phoneNumber": "+12025550189",
"location": [
48.802124,
2.157246
],
"customData": ""
},
"location": [
48.802124,
2.157246
],
"alias": "Customer 10",
"firstName": "Customer10",
"lastName": "Customer10",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550189",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 13,
"weight": 6.3,
"cube": 0.5,
"revenue": 8.1,
"timeWindow": [
400,
1053
],
"serviceTime": 0,
"depotId": 0
},
{
"id": 879878,
"creationTimestamp": 1763486363149,
"customerInfo": {
"id": 1791095,
"alias": "Customer 11",
"firstName": "Customer11",
"lastName": "Customer11",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer11@example.com",
"phoneNumber": "+120255501810",
"location": [
48.772667,
2.150946
],
"customData": ""
},
"location": [
48.772667,
2.150946
],
"alias": "Customer 11",
"firstName": "Customer11",
"lastName": "Customer11",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501810",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 10,
"weight": 8,
"cube": 0.1,
"revenue": 6.2,
"timeWindow": [
430,
1020
],
"serviceTime": 0,
"depotId": 0
},
{
"id": 879877,
"creationTimestamp": 1763486363149,
"customerInfo": {
"id": 1791094,
"alias": "Customer 12",
"firstName": "Customer12",
"lastName": "Customer12",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer12@example.com",
"phoneNumber": "+120255501811",
"location": [
48.761058,
2.077915
],
"customData": ""
},
"location": [
48.761058,
2.077915
],
"alias": "Customer 12",
"firstName": "Customer12",
"lastName": "Customer12",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501811",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 6,
"weight": 4.8,
"cube": 1.5,
"revenue": 2.3,
"timeWindow": [
430,
1020
],
"serviceTime": 0,
"depotId": 0
},
{
"creationTimestamp": 1763486363149,
"customerInfo": {
"alias": "Customer 13",
"firstName": "Customer13",
"lastName": "Customer13",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer13@example.com",
"phoneNumber": "+120255501812",
"location": [
48.900701,
1.999858
],
"customData": ""
},
"location": [
48.900701,
1.999858
],
"alias": "Customer 13",
"firstName": "Customer13",
"lastName": "Customer13",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501812",
"customData": "",
"type": 1,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 2,
"weight": 1.2,
"cube": 0.5,
"revenue": 12.1,
"timeWindow": [
350,
1053
],
"serviceTime": 0,
"depotId": 0
},
{
"creationTimestamp": 1763486363149,
"customerInfo": {
"alias": "Customer 14",
"firstName": "Customer14",
"lastName": "Customer14",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer14@example.com",
"phoneNumber": "+120255501813",
"location": [
48.868801,
2.035137
],
"customData": ""
},
"location": [
48.868801,
2.035137
],
"alias": "Customer 14",
"firstName": "Customer14",
"lastName": "Customer14",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501813",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 5,
"weight": 2.3,
"cube": 0.2,
"revenue": 5.2,
"timeWindow": [
540,
1020
],
"serviceTime": 0,
"depotId": 0
},
{
"creationTimestamp": 1763486363149,
"customerInfo": {
"alias": "Customer 15",
"firstName": "Customer15",
"lastName": "Customer15",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer15@example.com",
"phoneNumber": "+120255501814",
"location": [
48.873694,
2.358232
],
"customData": ""
},
"location": [
48.873694,
2.358232
],
"alias": "Customer 15",
"firstName": "Customer15",
"lastName": "Customer15",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501814",
"customData": "",
"type": 1,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 3,
"weight": 2.1,
"cube": 0.3,
"revenue": 6.3,
"timeWindow": [
500,
1086
],
"serviceTime": 0,
"depotId": 0
},
{
"creationTimestamp": 1763486363149,
"customerInfo": {
"alias": "Customer 16",
"firstName": "Customer16",
"lastName": "Customer16",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer16@example.com",
"phoneNumber": "+120255501815",
"location": [
48.800876,
2.047703
],
"customData": ""
},
"location": [
48.800876,
2.047703
],
"alias": "Customer 16",
"firstName": "Customer16",
"lastName": "Customer16",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501815",
"customData": "",
"type": 1,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 1,
"weight": 3.3,
"cube": 0.1,
"revenue": 8,
"timeWindow": [
380,
1070
],
"serviceTime": 0,
"depotId": 0
},
{
"creationTimestamp": 1763486363149,
"customerInfo": {
"alias": "Customer 17",
"firstName": "Customer17",
"lastName": "Customer17",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer17@example.com",
"phoneNumber": "+120255501816",
"location": [
48.828673,
1.954428
],
"customData": ""
},
"location": [
48.828673,
1.954428
],
"alias": "Customer 17",
"firstName": "Customer17",
"lastName": "Customer17",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501816",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 4,
"weight": 1.4,
"cube": 0.4,
"revenue": 4.8,
"timeWindow": [
400,
1053
],
"serviceTime": 0,
"depotId": 0
},
{
"creationTimestamp": 1763486363149,
"customerInfo": {
"alias": "Customer 18",
"firstName": "Customer18",
"lastName": "Customer18",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer18@example.com",
"phoneNumber": "+120255501817",
"location": [
48.870529,
1.966413
],
"customData": ""
},
"location": [
48.870529,
1.966413
],
"alias": "Customer 18",
"firstName": "Customer18",
"lastName": "Customer18",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501817",
"customData": "",
"type": 1,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 8,
"weight": 1.8,
"cube": 1.7,
"revenue": 15.4,
"timeWindow": [
430,
1020
],
"serviceTime": 0,
"depotId": 0
},
{
"creationTimestamp": 1763486363149,
"customerInfo": {
"alias": "Customer 19",
"firstName": "Customer19",
"lastName": "Customer19",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer19@example.com",
"phoneNumber": "+120255501818",
"location": [
48.885094,
2.298155
],
"customData": ""
},
"location": [
48.885094,
2.298155
],
"alias": "Customer 19",
"firstName": "Customer19",
"lastName": "Customer19",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501818",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 5,
"weight": 1.3,
"cube": 1.2,
"revenue": 16.2,
"timeWindow": [
430,
1020
],
"serviceTime": 0,
"depotId": 0
},
{
"creationTimestamp": 1763486363149,
"customerInfo": {
"alias": "Customer 20",
"firstName": "Customer20",
"lastName": "Customer20",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer20@example.com",
"phoneNumber": "+120255501819",
"location": [
48.970061,
2.199346
],
"customData": ""
},
"location": [
48.970061,
2.199346
],
"alias": "Customer 20",
"firstName": "Customer20",
"lastName": "Customer20",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501819",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 3,
"weight": 3.5,
"cube": 0.6,
"revenue": 29.1,
"timeWindow": [
435,
1020
],
"serviceTime": 0,
"depotId": 0
}
]
Step 2: Configure Optimization Parameters
Configuration Parameters define the behavior of the optimization process. These settings include optimization goals, search time limits, and flexibility in handling orders. Proper configuration ensures the optimization aligns with your business needs.
- Create Configuration: Define a
ConfigurationParametersobject and set the desired parameters.
{
"name": "Paris - test optimization",
"ignoreTimeWindow": false,
"allowDroppingOrders": false,
"groupingOrders": false,
"balancedRoutes": 0,
"optimizationCriterion": 0,
"arrangeCriterion": 0,
"optimizationQuality": 2,
"maxTimeToOptimize": 300,
"maxWaitTime": 8000,
"routeType": 0,
"restrictions": 0,
"distanceUnit": 0,
"orderSequenceOptions": []
}
Step 3: Create Vehicles and Define Vehicle Constraints
Vehicle constraints ensure that vehicles operate within their capabilities. These include time windows, capacity limits, distance constraints, and revenue goals. You can define constraints individually for each vehicle or apply a single set of constraints to all vehicles.
Adding Vehicles
- Initialize Vehicles: Create two
Vehicleobjects and populate their fields (e.g., type, capacity, availability). - Send Request: Call the
Add Vehiclesendpoint to save these vehicles in the database.
- Method:
POST - Endpoint:
/vehicles - Headers:
Authorization: YOUR_API_KEYContent-Type: application/json
- URL:
https://fleetmanagement.magiclaneapis.com/v1/vehicles
If the operation is successful, the Vehicle object will have its id field populated. If the operation fails, an error code is returned.
Example:
- Request Body:
[
{
"type": 0,
"status": 0,
"name": "Car vehicle 1",
"manufacturer": "Renault",
"model": "Master",
"fuelType": 2,
"lastPosition": [
48.870569,
2.356448
],
"consumption": 6.5,
"plate": "AA-123-AA",
"maxLoadWeight": 60,
"maxLoadCube": 50,
"height": 0,
"width": 0,
"weight": 0,
"length": 0,
"axleLoad": 0,
"fixedCost": 0,
"costPerHour": 0,
"startTime": 420,
"endTime": 1439
},
{
"type": 0,
"status": 0,
"name": "Car vehicle 2",
"manufacturer": "Renault",
"model": "Master",
"fuelType": 2,
"lastPosition": [
48.82674,
2.342116
],
"consumption": 6.5,
"plate": "AA-124-AA",
"maxLoadWeight": 60,
"maxLoadCube": 50,
"height": 0,
"width": 0,
"weight": 0,
"length": 0,
"axleLoad": 0,
"fixedCost": 0,
"costPerHour": 0,
"startTime": 420,
"endTime": 1439
}
]
- Response Body: (error code
200)
[
{
"id": 135933,
"type": 0,
"status": 0,
"name": "Car vehicle 1",
"manufacturer": "Renault",
"model": "Master",
"fuelType": 2,
"lastPosition": [
48.870569,
2.356448
],
"consumption": 6.5,
"plate": "AA-123-AA",
"maxLoadWeight": 60,
"maxLoadCube": 50,
"height": 0,
"width": 0,
"weight": 0,
"length": 0,
"axleLoad": 0,
"fixedCost": 0,
"costPerHour": 0,
"startTime": 420,
"endTime": 1439
},
{
"id": 135932,
"type": 0,
"status": 0,
"name": "Car vehicle 2",
"manufacturer": "Renault",
"model": "Master",
"fuelType": 2,
"lastPosition": [
48.82674,
2.342116
],
"consumption": 6.5,
"plate": "AA-124-AA",
"maxLoadWeight": 60,
"maxLoadCube": 50,
"height": 0,
"width": 0,
"weight": 0,
"length": 0,
"axleLoad": 0,
"fixedCost": 0,
"costPerHour": 0,
"startTime": 420,
"endTime": 1439
}
]
Defining Vehicle Constraints
- Create Constraints: Define a
VehicleConstraintsobject that applies to both vehicles. Add this object to a list.
[
{
"fuelPrice": 1.09,
"startDate": 1596758400000,
"maxNumberOfPackages": 53,
"minNumberOfOrders": 0,
"maxNumberOfOrders": 99999999,
"minDistance": 0,
"maxDistance": 99999999,
"maxRevenue": 85
}
]
Step 4: Create Departures and Destinations
- Departures: Define the starting points for vehicle routes. These locations impact optimization by influencing travel distance and time.
- Destinations: Define the final stops for vehicle routes. These locations ensure routes are optimized for efficiency.
Adding Departures and Destinations
- Initialize Departures: Create two
Departureobjects, one for each vehicle.
[
{
"depotId": 0,
"alias": "Depot 1",
"location": [
48.850315,
2.326157
],
"address": {
"country": "France",
"state": "Ile-de-France",
"county": "Paris",
"city": "Paris",
"postalCode": "75001",
"streetName": "Rue de Rivoli",
"streetNumber": "1"
}
},
{
"depotId": 0,
"alias": "Depot 2",
"location": [
8.826995,
2.13394
],
"address": {
"country": "France",
"state": "Ile-de-France",
"county": "Paris",
"city": "Paris",
"postalCode": "75002",
"streetName": "Rue de Richelieu",
"streetNumber": "2"
}
}
]
- Initialize Destinations: Since the route custom end, we have to create two
Destinationobjects, one for each vehicle.
[
{
"alias": "Destination 1",
"location": [
48.85453,
2.385119
],
"address": {
"country": "France",
"state": "Ile-de-France",
"county": "Paris",
"city": "Paris",
"postalCode": "75001",
"streetName": "Rue de Rivoli",
"streetNumber": "1"
}
},
{
"alias": "Destination 2",
"location": [
48.949147,
2.254177
],
"address": {
"country": "France",
"state": "Ile-de-France",
"county": "Paris",
"city": "Paris",
"postalCode": "75002",
"streetName": "Rue de Richelieu",
"streetNumber": "2"
}
}
]
Step 5: Create the Optimization
An optimization represents a routing problem defined by orders, vehicles, constraints, and configuration parameters. This step combines all the elements to generate an optimized solution.
- Create Optimization: Define an
Optimizationobject and assign theOrderList,ConfigurationParameters,VehicleList,VehicleConstraintsList, andDepartures. - Send Request: Call the
Add Optimizationendpoint to create the optimization.
- Method:
POST - Endpoint:
/optimizations - Headers:
Authorization: YOUR_API_KEYContent-Type: application/json
- URL:
https://fleetmanagement.magiclaneapis.com/v1/optimizations - Query Parameter:
encodeShape(integer, optional)0: The route's shape will not be encoded.1(default): The route's shape will be encoded.
Adding an optimization returns a request object, which allows you to track the status of the optimization process. Once the request status is finished, the solution can be retrieved using Get Optimization's Solution request. The solution consists of one or more routes. A route is the trip that a vehicle travels to visit the orders, so the number of routes returned is maximum the number of vehicles set in the optimization(see Routes).
If the operation is successful, the Optimization object will have its id field populated. If the operation fails, an error code is returned.
Example:
- Request Body:
{
"orders": [
879888,
879887,
879886,
879885,
879884,
879883,
879882,
879881,
879880,
879879,
879878,
879877
],
"departures": [
{
"depotId": 0,
"alias": "Depot 1",
"location": [
48.850315,
2.326157
],
"address": {
"country": "France",
"state": "Ile-de-France",
"county": "Paris",
"city": "Paris",
"postalCode": "75001",
"streetName": "Rue de Rivoli",
"streetNumber": "1"
}
},
{
"depotId": 0,
"alias": "Depot 2",
"location": [
8.826995,
2.13394
],
"address": {
"country": "France",
"state": "Ile-de-France",
"county": "Paris",
"city": "Paris",
"postalCode": "75002",
"streetName": "Rue de Richelieu",
"streetNumber": "2"
}
}
],
"destinations": [
{
"alias": "Destination 1",
"location": [
48.85453,
2.385119
],
"address": {
"country": "France",
"state": "Ile-de-France",
"county": "Paris",
"city": "Paris",
"postalCode": "75001",
"streetName": "Rue de Rivoli",
"streetNumber": "1"
}
},
{
"alias": "Destination 2",
"location": [
48.949147,
2.254177
],
"address": {
"country": "France",
"state": "Ile-de-France",
"county": "Paris",
"city": "Paris",
"postalCode": "75002",
"streetName": "Rue de Richelieu",
"streetNumber": "2"
}
}
],
"vehicles": [
135933,
135932
],
"vehiclesConstraints": [
{
"fuelPrice": 1.09,
"startDate": 1596758400000,
"maxNumberOfPackages": 53,
"minNumberOfOrders": 0,
"maxNumberOfOrders": 99999999,
"minDistance": 0,
"maxDistance": 99999999,
"maxRevenue": 85
}
],
"configurationParameters": {
"name": "Paris - test optimization",
"ignoreTimeWindow": false,
"allowDroppingOrders": false,
"groupingOrders": false,
"balancedRoutes": 0,
"optimizationCriterion": 0,
"arrangeCriterion": 0,
"optimizationQuality": 2,
"maxTimeToOptimize": 300,
"maxWaitTime": 8000,
"routeType": 0,
"restrictions": 0,
"distanceUnit": 0,
"orderSequenceOptions": []
},
"matrixBuildType": 1
}
- Response Body: (error code
200)
{
"id": 12345,
"orders": [
{
"id": 879888,
"creationTimestamp": 1763486363149,
"customerInfo": {
"id": 1791105,
"alias": "Customer 1",
"firstName": "Customer1",
"lastName": "Customer1",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer1@example.com",
"phoneNumber": "+12025550180",
"location": [
48.849151,
2.266093
],
"customData": ""
},
"location": [
48.849151,
2.266093
],
"alias": "Customer 1",
"firstName": "Customer1",
"lastName": "Customer1",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550180",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 1,
"weight": 2,
"cube": 0.1,
"revenue": 31.2,
"timeWindow": [
420,
1086
],
"serviceTime": 0,
"depotId": 0
},
{
"id": 879887,
"creationTimestamp": 1763486363149,
"customerInfo": {
"id": 1791104,
"alias": "Customer 2",
"firstName": "Customer2",
"lastName": "Customer2",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer2@example.com",
"phoneNumber": "+12025550181",
"location": [
48.914831,
2.168591
],
"customData": ""
},
"location": [
48.914831,
2.168591
],
"alias": "Customer 2",
"firstName": "Customer2",
"lastName": "Customer2",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550181",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 1,
"weight": 1.1,
"cube": 0.1,
"revenue": 24.5,
"timeWindow": [
420,
1086
],
"serviceTime": 0,
"depotId": 0
},
{
"id": 879886,
"creationTimestamp": 1763486363149,
"customerInfo": {
"id": 1791103,
"alias": "Customer 3",
"firstName": "Customer3",
"lastName": "Customer3",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer3@example.com",
"phoneNumber": "+12025550182",
"location": [
48.898456,
2.359571
],
"customData": ""
},
"location": [
48.898456,
2.359571
],
"alias": "Customer 3",
"firstName": "Customer3",
"lastName": "Customer3",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550182",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 3,
"weight": 5.1,
"cube": 0.5,
"revenue": 12,
"timeWindow": [
500,
1020
],
"serviceTime": 0,
"depotId": 0
},
{
"id": 879885,
"creationTimestamp": 1763486363149,
"customerInfo": {
"id": 1791102,
"alias": "Customer 4",
"firstName": "Customer4",
"lastName": "Customer4",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer4@example.com",
"phoneNumber": "+12025550183",
"location": [
48.891034,
2.376929
],
"customData": ""
},
"location": [
48.891034,
2.376929
],
"alias": "Customer 4",
"firstName": "Customer4",
"lastName": "Customer4",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550183",
"customData": "",
"type": 1,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 8,
"weight": 15.4,
"cube": 0.8,
"revenue": 2.7,
"timeWindow": [
430,
1036
],
"serviceTime": 0,
"depotId": 0
},
{
"id": 879884,
"creationTimestamp": 1763486363149,
"customerInfo": {
"id": 1791101,
"alias": "Customer 5",
"firstName": "Customer5",
"lastName": "Customer5",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer5@example.com",
"phoneNumber": "+12025550184",
"location": [
48.928086,
2.217675
],
"customData": ""
},
"location": [
48.928086,
2.217675
],
"alias": "Customer 5",
"firstName": "Customer5",
"lastName": "Customer5",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550184",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 9,
"weight": 16.2,
"cube": 0.4,
"revenue": 7.5,
"timeWindow": [
480,
1086
],
"serviceTime": 0,
"depotId": 0
},
{
"id": 879883,
"creationTimestamp": 1763486363149,
"customerInfo": {
"id": 1791100,
"alias": "Customer 6",
"firstName": "Customer6",
"lastName": "Customer6",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer6@example.com",
"phoneNumber": "+12025550185",
"location": [
48.89258,
2.081645
],
"customData": ""
},
"location": [
48.89258,
2.081645
],
"alias": "Customer 6",
"firstName": "Customer6",
"lastName": "Customer6",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550185",
"customData": "",
"type": 1,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 9,
"weight": 13.5,
"cube": 1.7,
"revenue": 10,
"timeWindow": [
350,
1053
],
"serviceTime": 0,
"depotId": 0
},
{
"id": 879882,
"creationTimestamp": 1763486363149,
"customerInfo": {
"id": 1791099,
"alias": "Customer 7",
"firstName": "Customer7",
"lastName": "Customer7",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer7@example.com",
"phoneNumber": "+12025550186",
"location": [
48.891779,
2.149101
],
"customData": ""
},
"location": [
48.891779,
2.149101
],
"alias": "Customer 7",
"firstName": "Customer7",
"lastName": "Customer7",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550186",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 5,
"weight": 7.5,
"cube": 1.2,
"revenue": 13.4,
"timeWindow": [
540,
1020
],
"serviceTime": 0,
"depotId": 0
},
{
"id": 879881,
"creationTimestamp": 1763486363149,
"customerInfo": {
"id": 1791098,
"alias": "Customer 8",
"firstName": "Customer8",
"lastName": "Customer8",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer8@example.com",
"phoneNumber": "+12025550187",
"location": [
48.86921,
2.283707
],
"customData": ""
},
"location": [
48.86921,
2.283707
],
"alias": "Customer 8",
"firstName": "Customer8",
"lastName": "Customer8",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550187",
"customData": "",
"type": 1,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 11,
"weight": 12.1,
"cube": 0.6,
"revenue": 14.7,
"timeWindow": [
500,
1086
],
"serviceTime": 0,
"depotId": 0
},
{
"id": 879880,
"creationTimestamp": 1763486363149,
"customerInfo": {
"id": 1791097,
"alias": "Customer 9",
"firstName": "Customer9",
"lastName": "Customer9",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer9@example.com",
"phoneNumber": "+12025550188",
"location": [
48.897715,
2.324124
],
"customData": ""
},
"location": [
48.897715,
2.324124
],
"alias": "Customer 9",
"firstName": "Customer9",
"lastName": "Customer9",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550188",
"customData": "",
"type": 1,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 6,
"weight": 5.2,
"cube": 1.5,
"revenue": 2.9,
"timeWindow": [
380,
1070
],
"serviceTime": 0,
"depotId": 0
},
{
"id": 879879,
"creationTimestamp": 1763486363149,
"customerInfo": {
"id": 1791096,
"alias": "Customer 10",
"firstName": "Customer10",
"lastName": "Customer10",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer10@example.com",
"phoneNumber": "+12025550189",
"location": [
48.802124,
2.157246
],
"customData": ""
},
"location": [
48.802124,
2.157246
],
"alias": "Customer 10",
"firstName": "Customer10",
"lastName": "Customer10",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+12025550189",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 13,
"weight": 6.3,
"cube": 0.5,
"revenue": 8.1,
"timeWindow": [
400,
1053
],
"serviceTime": 0,
"depotId": 0
},
{
"id": 879878,
"creationTimestamp": 1763486363149,
"customerInfo": {
"id": 1791095,
"alias": "Customer 11",
"firstName": "Customer11",
"lastName": "Customer11",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer11@example.com",
"phoneNumber": "+120255501810",
"location": [
48.772667,
2.150946
],
"customData": ""
},
"location": [
48.772667,
2.150946
],
"alias": "Customer 11",
"firstName": "Customer11",
"lastName": "Customer11",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501810",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 10,
"weight": 8,
"cube": 0.1,
"revenue": 6.2,
"timeWindow": [
430,
1020
],
"serviceTime": 0,
"depotId": 0
},
{
"id": 879877,
"creationTimestamp": 1763486363149,
"customerInfo": {
"id": 1791094,
"alias": "Customer 12",
"firstName": "Customer12",
"lastName": "Customer12",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer12@example.com",
"phoneNumber": "+120255501811",
"location": [
48.761058,
2.077915
],
"customData": ""
},
"location": [
48.761058,
2.077915
],
"alias": "Customer 12",
"firstName": "Customer12",
"lastName": "Customer12",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501811",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 6,
"weight": 4.8,
"cube": 1.5,
"revenue": 2.3,
"timeWindow": [
430,
1020
],
"serviceTime": 0,
"depotId": 0
},
{
"creationTimestamp": 1763486363149,
"customerInfo": {
"alias": "Customer 13",
"firstName": "Customer13",
"lastName": "Customer13",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer13@example.com",
"phoneNumber": "+120255501812",
"location": [
48.900701,
1.999858
],
"customData": ""
},
"location": [
48.900701,
1.999858
],
"alias": "Customer 13",
"firstName": "Customer13",
"lastName": "Customer13",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501812",
"customData": "",
"type": 1,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 2,
"weight": 1.2,
"cube": 0.5,
"revenue": 12.1,
"timeWindow": [
350,
1053
],
"serviceTime": 0,
"depotId": 0
},
{
"creationTimestamp": 1763486363149,
"customerInfo": {
"alias": "Customer 14",
"firstName": "Customer14",
"lastName": "Customer14",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer14@example.com",
"phoneNumber": "+120255501813",
"location": [
48.868801,
2.035137
],
"customData": ""
},
"location": [
48.868801,
2.035137
],
"alias": "Customer 14",
"firstName": "Customer14",
"lastName": "Customer14",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501813",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 5,
"weight": 2.3,
"cube": 0.2,
"revenue": 5.2,
"timeWindow": [
540,
1020
],
"serviceTime": 0,
"depotId": 0
},
{
"creationTimestamp": 1763486363149,
"customerInfo": {
"alias": "Customer 15",
"firstName": "Customer15",
"lastName": "Customer15",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer15@example.com",
"phoneNumber": "+120255501814",
"location": [
48.873694,
2.358232
],
"customData": ""
},
"location": [
48.873694,
2.358232
],
"alias": "Customer 15",
"firstName": "Customer15",
"lastName": "Customer15",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501814",
"customData": "",
"type": 1,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 3,
"weight": 2.1,
"cube": 0.3,
"revenue": 6.3,
"timeWindow": [
500,
1086
],
"serviceTime": 0,
"depotId": 0
},
{
"creationTimestamp": 1763486363149,
"customerInfo": {
"alias": "Customer 16",
"firstName": "Customer16",
"lastName": "Customer16",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer16@example.com",
"phoneNumber": "+120255501815",
"location": [
48.800876,
2.047703
],
"customData": ""
},
"location": [
48.800876,
2.047703
],
"alias": "Customer 16",
"firstName": "Customer16",
"lastName": "Customer16",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501815",
"customData": "",
"type": 1,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 1,
"weight": 3.3,
"cube": 0.1,
"revenue": 8,
"timeWindow": [
380,
1070
],
"serviceTime": 0,
"depotId": 0
},
{
"creationTimestamp": 1763486363149,
"customerInfo": {
"alias": "Customer 17",
"firstName": "Customer17",
"lastName": "Customer17",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer17@example.com",
"phoneNumber": "+120255501816",
"location": [
48.828673,
1.954428
],
"customData": ""
},
"location": [
48.828673,
1.954428
],
"alias": "Customer 17",
"firstName": "Customer17",
"lastName": "Customer17",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501816",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 4,
"weight": 1.4,
"cube": 0.4,
"revenue": 4.8,
"timeWindow": [
400,
1053
],
"serviceTime": 0,
"depotId": 0
},
{
"creationTimestamp": 1763486363149,
"customerInfo": {
"alias": "Customer 18",
"firstName": "Customer18",
"lastName": "Customer18",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer18@example.com",
"phoneNumber": "+120255501817",
"location": [
48.870529,
1.966413
],
"customData": ""
},
"location": [
48.870529,
1.966413
],
"alias": "Customer 18",
"firstName": "Customer18",
"lastName": "Customer18",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501817",
"customData": "",
"type": 1,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 8,
"weight": 1.8,
"cube": 1.7,
"revenue": 15.4,
"timeWindow": [
430,
1020
],
"serviceTime": 0,
"depotId": 0
},
{
"creationTimestamp": 1763486363149,
"customerInfo": {
"alias": "Customer 19",
"firstName": "Customer19",
"lastName": "Customer19",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer19@example.com",
"phoneNumber": "+120255501818",
"location": [
48.885094,
2.298155
],
"customData": ""
},
"location": [
48.885094,
2.298155
],
"alias": "Customer 19",
"firstName": "Customer19",
"lastName": "Customer19",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501818",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 5,
"weight": 1.3,
"cube": 1.2,
"revenue": 16.2,
"timeWindow": [
430,
1020
],
"serviceTime": 0,
"depotId": 0
},
{
"creationTimestamp": 1763486363149,
"customerInfo": {
"alias": "Customer 20",
"firstName": "Customer20",
"lastName": "Customer20",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"email": "customer20@example.com",
"phoneNumber": "+120255501819",
"location": [
48.970061,
2.199346
],
"customData": ""
},
"location": [
48.970061,
2.199346
],
"alias": "Customer 20",
"firstName": "Customer20",
"lastName": "Customer20",
"address": {
"country": "",
"state": "",
"county": "",
"city": "",
"postalCode": "",
"streetName": "",
"streetNumber": ""
},
"phoneNumber": "+120255501819",
"customData": "",
"type": 0,
"status": 0,
"state": 1,
"priority": 0,
"numberOfPackages": 3,
"weight": 3.5,
"cube": 0.6,
"revenue": 29.1,
"timeWindow": [
435,
1020
],
"serviceTime": 0,
"depotId": 0
}
],
"departures": [
{
"depotId": 0,
"alias": "Depot 1",
"location": [
48.850315,
2.326157
],
"address": {
"country": "France",
"state": "Ile-de-France",
"county": "Paris",
"city": "Paris",
"postalCode": "75001",
"streetName": "Rue de Rivoli",
"streetNumber": "1"
}
},
{
"depotId": 0,
"alias": "Depot 2",
"location": [
8.826995,
2.13394
],
"address": {
"country": "France",
"state": "Ile-de-France",
"county": "Paris",
"city": "Paris",
"postalCode": "75002",
"streetName": "Rue de Richelieu",
"streetNumber": "2"
}
}
],
"destinations": [
{
"alias": "Destination 1",
"location": [
48.85453,
2.385119
],
"address": {
"country": "France",
"state": "Ile-de-France",
"county": "Paris",
"city": "Paris",
"postalCode": "75001",
"streetName": "Rue de Rivoli",
"streetNumber": "1"
}
},
{
"alias": "Destination 2",
"location": [
48.949147,
2.254177
],
"address": {
"country": "France",
"state": "Ile-de-France",
"county": "Paris",
"city": "Paris",
"postalCode": "75002",
"streetName": "Rue de Richelieu",
"streetNumber": "2"
}
}
],
"vehicles": [
{
"id": 135933,
"type": 0,
"status": 0,
"name": "Car vehicle 1",
"manufacturer": "Renault",
"model": "Master",
"fuelType": 2,
"lastPosition": [
48.870569,
2.356448
],
"consumption": 6.5,
"plate": "AA-123-AA",
"maxLoadWeight": 60,
"maxLoadCube": 50,
"height": 0,
"width": 0,
"weight": 0,
"length": 0,
"axleLoad": 0,
"fixedCost": 0,
"costPerHour": 0,
"startTime": 420,
"endTime": 1439
},
{
"id": 135932,
"type": 0,
"status": 0,
"name": "Car vehicle 2",
"manufacturer": "Renault",
"model": "Master",
"fuelType": 2,
"lastPosition": [
48.82674,
2.342116
],
"consumption": 6.5,
"plate": "AA-124-AA",
"maxLoadWeight": 60,
"maxLoadCube": 50,
"height": 0,
"width": 0,
"weight": 0,
"length": 0,
"axleLoad": 0,
"fixedCost": 0,
"costPerHour": 0,
"startTime": 420,
"endTime": 1439
}
],
"vehiclesConstraints": [
{
"fuelPrice": 1.09,
"startDate": 1596758400000,
"maxNumberOfPackages": 53,
"minNumberOfOrders": 0,
"maxNumberOfOrders": 99999999,
"minDistance": 0,
"maxDistance": 99999999,
"maxRevenue": 85
}
],
"configurationParameters": {
"name": "Paris - test optimization",
"ignoreTimeWindow": false,
"allowDroppingOrders": false,
"groupingOrders": false,
"balancedRoutes": 0,
"optimizationCriterion": 0,
"arrangeCriterion": 0,
"optimizationQuality": 2,
"maxTimeToOptimize": 300,
"maxWaitTime": 8000,
"routeType": 0,
"restrictions": 0,
"distanceUnit": 0,
"orderSequenceOptions": []
},
"creationTimestamp": 1763486363149,
"matrixBuildType": 1,
"request": {
"id": 1234,
"optimizationId": 12345,
"status": 1,
"message": "Operation done successfully!",
"creationTimestamp": 1763486363149
}
}
Step 6: Display the Solution
Once the optimization is complete, retrieve the solution (routes) to visualize the optimized routes and waypoints.
- Method:
GET - Endpoint:
/optimizations/{id}/solution - Headers:
Authorization: YOUR_API_KEY
- Path Parameter:
id(integer, required) - The unique optimization ID.
- Query Parameter:
encodeShape(integer, optional)0: The route's shape will not be encoded.1(default): The route's shape will be encoded.
Example:
- Response Body: (error code
200)
{
"totalRecords": 1,
"routes": [
{
"configurationParameters": {
"orderSequenceOptions": [
],
"distanceUnit": 0,
"maxTimeToOptimize": 300,
"optimizationQuality": 2,
"routeType": 2,
"arrangeCriterion": 0,
"restrictions": 0,
"maxWaitTime": 8000,
"balancedRoutes": 0,
"groupingOrders": false,
"optimizationCriterion": 0,
"allowDroppingOrders": false,
"ignoreTimeWindow": false,
"name": "Paris - test optimization - Part 0"
},
"vehicleConstraints": {
"startDate": 1596758400000,
"maxNumberOfPackages": 100,
"minNumberOfOrders": 1,
"maxNumberOfOrders": 50,
"minDistance": 0.0,
"maxDistance": 100000000.0,
"maxRevenue": 100000000.0,
"fuelPrice": 1.1900000572204589844
},
"rideStatus": 1,
"vehicle": {
"length": 0.0,
"weight": 0.0,
"width": 0.0,
"licensePlate": "BV01MGL",
"consumption": 8.5,
"fuelType": 3,
"make": "Volkswagen",
"id": 161424,
"name": "Vehicle 1",
"model": "Transporter",
"costPerHour": 0.0,
"type": 0,
"status": 0,
"maxLoadWeight": 9999.0,
"height": 0.0,
"maxLoadCube": 9999.0,
"idDriver": 161424,
"endTime": 1100,
"fixedCost": 0.0,
"startTime": 300,
"lastPosition": [
2147483647.0,
2147483647.0
]
},
"destination": {
"depotId": 0,
"alias": "Destination 1",
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
},
"location": [
48.854529999999996903,
2.3851189999999999891
],
"matchedLocation": [
48.854634687500002599,
2.3850259375000000261
],
"arrivalTime": 1596790319000,
"traveledDistance": 23.71956634521484375
},
"departure": {
"depotId": 0,
"alias": "Depot 1",
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
},
"location": [
48.85031500000000193,
2.3261569999999998082
],
"matchedLocation": [
48.850399687500001278,
2.3270671874999999673
],
"numberOfpackages": 28,
"weight": 34.79000091552734375,
"cube": 3.2000000476837158203,
"departureTime": 1596782811502,
"timeToNext": 788,
"distanceToNext": 5.1164541244506835938
},
"shape": "cbdiHaoeMnAWvA`CfAdCqFxFf@zApAjD|HlRfAvCZ`AbApD`A",
"creationTimestamp": 1752745393789,
"neededFuel": 2.0161631107330322266,
"matrixBuildType": 1,
"price": 2.3992342948913574219,
"totalWaitTime": 0,
"totalServiceTime": 3600,
"optimizationId": 148748,
"orders": [
{
"orderInfo": {
"revenue": 31.200000762939453125,
"serviceTime": 600,
"timeWindow": [
420,
1086
],
"creationTimestamp": 1752745377776,
"cube": 0.10000000149011611938,
"numberOfPackages": 1,
"depotId": 0,
"customData": "",
"weight": 2.0,
"phoneNumber": "+12312312",
"lastName": "",
"status": 1,
"firstName": "",
"alias": "c0",
"state": 1,
"type": 0,
"priority": 0,
"id": 1191545,
"location": [
48.849150999999999101,
2.266093000000000135
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
},
"customerInfo": {
"phoneNumber": "+12312312",
"email": "c0@yahoo.com",
"lastName": "",
"firstName": "",
"alias": "c0",
"customData": "",
"id": 1994934,
"location": [
48.849150999999999101,
2.266093000000000135
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
}
}
},
"matchedLocation": [
48.849171249999997713,
2.2661371875000000387
],
"actualLocation": [
0.0,
0.0
],
"indexInRoute": 0,
"indexInOptimization": 0,
"arrivalTime": 1086,
"timeToNextOrder": 512,
"waitTime": 0,
"numberOfPackagesAtArrival": 28,
"collectedNumberOfPackages": 1,
"deliveredNumberOfPackages": 0,
"weightAtArrival": 34.79000091552734375,
"collectedWeight": 2.0,
"deliveredWeight": 0.0,
"cubeAtArrival": 3.2000000476837158203,
"collectedCube": 0.10000000149011611938,
"deliveredCube": 0.0,
"traveledDistance": 5.1164541244506835938,
"distanceToNextOrder": 2.9505839347839355469,
"revenueAtArrival": 0.0,
"visitTimestamp": 0
},
{
"orderInfo": {
"revenue": 14.699999809265136719,
"serviceTime": 750,
"timeWindow": [
500,
1086
],
"creationTimestamp": 1752745377994,
"cube": 0.60000002384185791016,
"numberOfPackages": 11,
"depotId": 0,
"customData": "",
"weight": 12.100000381469726562,
"phoneNumber": "+12312312",
"lastName": "",
"status": 1,
"firstName": "",
"alias": "c7",
"state": 1,
"type": 1,
"priority": 0,
"id": 1191552,
"location": [
48.869210000000002481,
2.2837070000000001535
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
},
"customerInfo": {
"phoneNumber": "+12312312",
"email": "c7@yahoo.com",
"lastName": "",
"firstName": "",
"alias": "c7",
"customData": "",
"id": 1994941,
"location": [
48.869210000000002481,
2.2837070000000001535
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
}
}
},
"matchedLocation": [
48.869059062499999868,
2.2839128125000001113
],
"actualLocation": [
0.0,
0.0
],
"indexInRoute": 1,
"indexInOptimization": 7,
"arrivalTime": 1086,
"timeToNextOrder": 421,
"waitTime": 0,
"numberOfPackagesAtArrival": 29,
"collectedNumberOfPackages": 0,
"deliveredNumberOfPackages": 11,
"weightAtArrival": 36.79000091552734375,
"collectedWeight": 0.0,
"deliveredWeight": 12.100000381469726562,
"cubeAtArrival": 3.2999999523162841797,
"collectedCube": 0.0,
"deliveredCube": 0.60000002384185791016,
"traveledDistance": 8.0670375823974609375,
"distanceToNextOrder": 2.4656031131744384766,
"revenueAtArrival": 31.200000762939453125,
"visitTimestamp": 0
},
{
"orderInfo": {
"revenue": 16.200000762939453125,
"serviceTime": 100,
"timeWindow": [
430,
1020
],
"creationTimestamp": 1752745378363,
"cube": 1.2000000476837158203,
"numberOfPackages": 5,
"depotId": 0,
"customData": "",
"weight": 1.2999999523162841797,
"phoneNumber": "+12312312",
"lastName": "",
"status": 1,
"firstName": "",
"alias": "c18",
"state": 1,
"type": 0,
"priority": 0,
"id": 1191563,
"location": [
48.885094000000002268,
2.2981549999999999478
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
},
"customerInfo": {
"phoneNumber": "+12312312",
"email": "c18@yahoo.com",
"lastName": "",
"firstName": "",
"alias": "c18",
"customData": "",
"id": 1994952,
"location": [
48.885094000000002268,
2.2981549999999999478
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
}
}
},
"matchedLocation": [
48.88519124999999832,
2.2980493750000001718
],
"actualLocation": [
0.0,
0.0
],
"indexInRoute": 2,
"indexInOptimization": 18,
"arrivalTime": 1020,
"timeToNextOrder": 374,
"waitTime": 0,
"numberOfPackagesAtArrival": 18,
"collectedNumberOfPackages": 5,
"deliveredNumberOfPackages": 0,
"weightAtArrival": 24.690000534057617188,
"collectedWeight": 1.2999999523162841797,
"deliveredWeight": 0.0,
"cubeAtArrival": 2.6999998092651367188,
"collectedCube": 1.2000000476837158203,
"deliveredCube": 0.0,
"traveledDistance": 10.532640457153320312,
"distanceToNextOrder": 2.5433249473571777344,
"revenueAtArrival": 45.90000152587890625,
"visitTimestamp": 0
},
{
"orderInfo": {
"revenue": 2.9000000953674316406,
"serviceTime": 800,
"timeWindow": [
380,
1070
],
"creationTimestamp": 1752745378026,
"cube": 1.5,
"numberOfPackages": 6,
"depotId": 0,
"customData": "",
"weight": 5.1999998092651367188,
"phoneNumber": "+12312312",
"lastName": "",
"status": 1,
"firstName": "",
"alias": "c8",
"state": 1,
"type": 1,
"priority": 0,
"id": 1191553,
"location": [
48.897714999999998042,
2.3241239999999998567
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
},
"customerInfo": {
"phoneNumber": "+12312312",
"email": "c8@yahoo.com",
"lastName": "",
"firstName": "",
"alias": "c8",
"customData": "",
"id": 1994942,
"location": [
48.897714999999998042,
2.3241239999999998567
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
}
}
},
"matchedLocation": [
48.897719999999999629,
2.3241103125000002194
],
"actualLocation": [
0.0,
0.0
],
"indexInRoute": 3,
"indexInOptimization": 8,
"arrivalTime": 1070,
"timeToNextOrder": 441,
"waitTime": 0,
"numberOfPackagesAtArrival": 23,
"collectedNumberOfPackages": 0,
"deliveredNumberOfPackages": 6,
"weightAtArrival": 25.989999771118164062,
"collectedWeight": 0.0,
"deliveredWeight": 5.1999998092651367188,
"cubeAtArrival": 3.8999998569488525391,
"collectedCube": 0.0,
"deliveredCube": 1.5,
"traveledDistance": 13.07596588134765625,
"distanceToNextOrder": 2.9614520072937011719,
"revenueAtArrival": 62.100002288818359375,
"visitTimestamp": 0
},
{
"orderInfo": {
"revenue": 12.0,
"serviceTime": 600,
"timeWindow": [
500,
1020
],
"creationTimestamp": 1752745377842,
"cube": 0.5,
"numberOfPackages": 3,
"depotId": 0,
"customData": "",
"weight": 5.0999999046325683594,
"phoneNumber": "+12312312",
"lastName": "",
"status": 1,
"firstName": "",
"alias": "c2",
"state": 1,
"type": 0,
"priority": 0,
"id": 1191547,
"location": [
48.89845600000000303,
2.359570999999999863
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
},
"customerInfo": {
"phoneNumber": "+12312312",
"email": "c2@yahoo.com",
"lastName": "",
"firstName": "",
"alias": "c2",
"customData": "",
"id": 1994936,
"location": [
48.89845600000000303,
2.359570999999999863
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
}
}
},
"matchedLocation": [
48.898546250000002544,
2.3595962500000000617
],
"actualLocation": [
0.0,
0.0
],
"indexInRoute": 4,
"indexInOptimization": 2,
"arrivalTime": 1020,
"timeToNextOrder": 363,
"waitTime": 0,
"numberOfPackagesAtArrival": 17,
"collectedNumberOfPackages": 3,
"deliveredNumberOfPackages": 0,
"weightAtArrival": 20.79000091552734375,
"collectedWeight": 5.0999999046325683594,
"deliveredWeight": 0.0,
"cubeAtArrival": 2.3999998569488525391,
"collectedCube": 0.5,
"deliveredCube": 0.0,
"traveledDistance": 16.037418365478515625,
"distanceToNextOrder": 1.9833699464797973633,
"revenueAtArrival": 65.0,
"visitTimestamp": 0
},
{
"orderInfo": {
"revenue": 2.7000000476837158203,
"serviceTime": 0,
"timeWindow": [
430,
1036
],
"creationTimestamp": 1752745377872,
"cube": 0.80000001192092895508,
"numberOfPackages": 8,
"depotId": 0,
"customData": "",
"weight": 15.399999618530273438,
"phoneNumber": "+12312312",
"lastName": "",
"status": 1,
"firstName": "",
"alias": "c3",
"state": 1,
"type": 1,
"priority": 0,
"id": 1191548,
"location": [
48.891033999999997661,
2.3769290000000000695
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
},
"customerInfo": {
"phoneNumber": "+12312312",
"email": "c3@yahoo.com",
"lastName": "",
"firstName": "",
"alias": "c3",
"customData": "",
"id": 1994937,
"location": [
48.891033999999997661,
2.3769290000000000695
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
}
}
},
"matchedLocation": [
48.890990625000000591,
2.3770284374999999244
],
"actualLocation": [
0.0,
0.0
],
"indexInRoute": 5,
"indexInOptimization": 3,
"arrivalTime": 1036,
"timeToNextOrder": 439,
"waitTime": 0,
"numberOfPackagesAtArrival": 20,
"collectedNumberOfPackages": 0,
"deliveredNumberOfPackages": 8,
"weightAtArrival": 25.890001296997070312,
"collectedWeight": 0.0,
"deliveredWeight": 15.399999618530273438,
"cubeAtArrival": 2.8999998569488525391,
"collectedCube": 0.0,
"deliveredCube": 0.80000001192092895508,
"traveledDistance": 18.020788192749023438,
"distanceToNextOrder": 2.4141581058502197266,
"revenueAtArrival": 77.0,
"visitTimestamp": 0
},
{
"orderInfo": {
"revenue": 6.3000001907348632812,
"serviceTime": 750,
"timeWindow": [
500,
1086
],
"creationTimestamp": 1752745378218,
"cube": 0.30000001192092895508,
"numberOfPackages": 3,
"depotId": 0,
"customData": "",
"weight": 2.0999999046325683594,
"phoneNumber": "+12312312",
"lastName": "",
"status": 1,
"firstName": "",
"alias": "c14",
"state": 1,
"type": 1,
"priority": 0,
"id": 1191559,
"location": [
48.873694000000000415,
2.3582320000000001059
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
},
"customerInfo": {
"phoneNumber": "+12312312",
"email": "c14@yahoo.com",
"lastName": "",
"firstName": "",
"alias": "c14",
"customData": "",
"id": 1994948,
"location": [
48.873694000000000415,
2.3582320000000001059
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
}
}
},
"matchedLocation": [
48.873672812499997065,
2.3582637499999998809
],
"actualLocation": [
0.0,
0.0
],
"indexInRoute": 6,
"indexInOptimization": 14,
"arrivalTime": 1086,
"timeToNextOrder": 569,
"waitTime": 0,
"numberOfPackagesAtArrival": 12,
"collectedNumberOfPackages": 0,
"deliveredNumberOfPackages": 3,
"weightAtArrival": 10.490001678466796875,
"collectedWeight": 0.0,
"deliveredWeight": 2.0999999046325683594,
"cubeAtArrival": 2.0999999046325683594,
"collectedCube": 0.0,
"deliveredCube": 0.30000001192092895508,
"traveledDistance": 20.434946060180664062,
"distanceToNextOrder": 3.2846210002899169922,
"revenueAtArrival": 79.6999969482421875,
"visitTimestamp": 0
}
],
"totalTime": 7507,
"totalDistance": 23.71956634521484375,
"id": 273023
},
{
"configurationParameters": {
"orderSequenceOptions": [
],
"distanceUnit": 0,
"maxTimeToOptimize": 300,
"optimizationQuality": 2,
"routeType": 2,
"arrangeCriterion": 0,
"restrictions": 0,
"maxWaitTime": 8000,
"balancedRoutes": 0,
"groupingOrders": false,
"optimizationCriterion": 0,
"allowDroppingOrders": false,
"ignoreTimeWindow": false,
"name": "Paris - test optimization - Part 1"
},
"vehicleConstraints": {
"startDate": 1596758400000,
"maxNumberOfPackages": 100,
"minNumberOfOrders": 1,
"maxNumberOfOrders": 50,
"minDistance": 0.0,
"maxDistance": 100000000.0,
"maxRevenue": 100000000.0,
"fuelPrice": 1.1900000572204589844
},
"rideStatus": 1,
"vehicle": {
"length": 0.0,
"weight": 0.0,
"width": 0.0,
"licensePlate": "BV02MGL",
"consumption": 8.5,
"fuelType": 3,
"make": "Volkswagen",
"id": 161425,
"name": "Vehicle 2",
"model": "Transporter",
"costPerHour": 0.0,
"type": 0,
"status": 0,
"maxLoadWeight": 9999.0,
"height": 0.0,
"maxLoadCube": 9999.0,
"idDriver": 161425,
"endTime": 1100,
"fixedCost": 0.0,
"startTime": 300,
"lastPosition": [
2147483647.0,
2147483647.0
]
},
"destination": {
"depotId": 0,
"alias": "Destination 2",
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
},
"location": [
48.949147000000003516,
2.2541769999999998753
],
"matchedLocation": [
48.949199374999999179,
2.254151874999999805
],
"arrivalTime": 1596812796000,
"traveledDistance": 97.8531036376953125
},
"departure": {
"depotId": 0,
"alias": "Depot 2",
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
},
"location": [
48.826994999999996594,
2.133939999999999948
],
"matchedLocation": [
48.826888750000001949,
2.1338340625000000728
],
"numberOfpackages": 20,
"weight": 19.799999237060546875,
"cube": 4.0,
"departureTime": 1596781880225,
"timeToNext": 520,
"distanceToNext": 4.0505337715148925781
},
"shape": "}n_iHsw_LADTLzAeIzBUDCXuEF_@y@qA`MqNVJjBnAvJzFfIFf@BHBHCNWDMFc@FkBZ_Cr@}BvBuHjWfC|LfAl",
"creationTimestamp": 1752745393887,
"neededFuel": 8.3175144195556640625,
"matrixBuildType": 1,
"price": 9.8978424072265625,
"totalWaitTime": 0,
"totalServiceTime": 6950,
"optimizationId": 148748,
"orders": [
{
"orderInfo": {
"revenue": 8.1000003814697265625,
"serviceTime": 1000,
"timeWindow": [
400,
1053
],
"creationTimestamp": 1752745378055,
"cube": 0.5,
"numberOfPackages": 13,
"depotId": 0,
"customData": "",
"weight": 6.3000001907348632812,
"phoneNumber": "+12312312",
"lastName": "",
"status": 1,
"firstName": "",
"alias": "c9",
"state": 1,
"type": 0,
"priority": 0,
"id": 1191554,
"location": [
48.802123999999999171,
2.1572460000000002189
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
},
"customerInfo": {
"phoneNumber": "+12312312",
"email": "c9@yahoo.com",
"lastName": "",
"firstName": "",
"alias": "c9",
"customData": "",
"id": 1994943,
"location": [
48.802123999999999171,
2.1572460000000002189
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
}
}
},
"matchedLocation": [
48.802650624999998286,
2.1579628125000001049
],
"actualLocation": [
0.0,
0.0
],
"indexInRoute": 0,
"indexInOptimization": 9,
"arrivalTime": 1053,
"timeToNextOrder": 526,
"waitTime": 0,
"numberOfPackagesAtArrival": 20,
"collectedNumberOfPackages": 13,
"deliveredNumberOfPackages": 0,
"weightAtArrival": 19.799999237060546875,
"collectedWeight": 6.3000001907348632812,
"deliveredWeight": 0.0,
"cubeAtArrival": 4.0,
"collectedCube": 0.5,
"deliveredCube": 0.0,
"traveledDistance": 4.0505337715148925781,
"distanceToNextOrder": 4.8626232147216796875,
"revenueAtArrival": 0.0,
"visitTimestamp": 0
},
{
"orderInfo": {
"revenue": 6.1999998092651367188,
"serviceTime": 850,
"timeWindow": [
430,
1020
],
"creationTimestamp": 1752745378086,
"cube": 0.10000000149011611938,
"numberOfPackages": 10,
"depotId": 0,
"customData": "",
"weight": 8.0,
"phoneNumber": "+12312312",
"lastName": "",
"status": 1,
"firstName": "",
"alias": "c10",
"state": 1,
"type": 0,
"priority": 0,
"id": 1191555,
"location": [
48.772666999999998438,
2.1509459999999998026
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
},
"customerInfo": {
"phoneNumber": "+12312312",
"email": "c10@yahoo.com",
"lastName": "",
"firstName": "",
"alias": "c10",
"customData": "",
"id": 1994944,
"location": [
48.772666999999998438,
2.1509459999999998026
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
}
}
},
"matchedLocation": [
48.773209375000000421,
2.1509934374999999385
],
"actualLocation": [
0.0,
0.0
],
"indexInRoute": 1,
"indexInOptimization": 10,
"arrivalTime": 1020,
"timeToNextOrder": 7600,
"waitTime": 0,
"numberOfPackagesAtArrival": 33,
"collectedNumberOfPackages": 10,
"deliveredNumberOfPackages": 0,
"weightAtArrival": 26.09999847412109375,
"collectedWeight": 8.0,
"deliveredWeight": 0.0,
"cubeAtArrival": 4.5,
"collectedCube": 0.10000000149011611938,
"deliveredCube": 0.0,
"traveledDistance": 8.9131565093994140625,
"distanceToNextOrder": 12.522212982177734375,
"revenueAtArrival": 8.1000003814697265625,
"visitTimestamp": 0
},
{
"orderInfo": {
"revenue": 2.2999999523162841797,
"serviceTime": 600,
"timeWindow": [
430,
1020
],
"creationTimestamp": 1752745378115,
"cube": 1.5,
"numberOfPackages": 6,
"depotId": 0,
"customData": "",
"weight": 4.8000001907348632812,
"phoneNumber": "+12312312",
"lastName": "",
"status": 1,
"firstName": "",
"alias": "c11",
"state": 1,
"type": 0,
"priority": 0,
"id": 1191556,
"location": [
48.761057999999998458,
2.0779149999999999565
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
},
"customerInfo": {
"phoneNumber": "+12312312",
"email": "c11@yahoo.com",
"lastName": "",
"firstName": "",
"alias": "c11",
"customData": "",
"id": 1994945,
"location": [
48.761057999999998458,
2.0779149999999999565
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
}
}
},
"matchedLocation": [
48.761151875000003031,
2.0777771875000001778
],
"actualLocation": [
0.0,
0.0
],
"indexInRoute": 2,
"indexInOptimization": 11,
"arrivalTime": 1020,
"timeToNextOrder": 9657,
"waitTime": 0,
"numberOfPackagesAtArrival": 43,
"collectedNumberOfPackages": 6,
"deliveredNumberOfPackages": 0,
"weightAtArrival": 34.09999847412109375,
"collectedWeight": 4.8000001907348632812,
"deliveredWeight": 0.0,
"cubeAtArrival": 4.5999999046325683594,
"collectedCube": 1.5,
"deliveredCube": 0.0,
"traveledDistance": 21.435369491577148438,
"distanceToNextOrder": 9.8299083709716796875,
"revenueAtArrival": 14.300000190734863281,
"visitTimestamp": 0
},
{
"orderInfo": {
"revenue": 8.0,
"serviceTime": 800,
"timeWindow": [
380,
1070
],
"creationTimestamp": 1752745378257,
"cube": 0.10000000149011611938,
"numberOfPackages": 1,
"depotId": 0,
"customData": "",
"weight": 3.2999999523162841797,
"phoneNumber": "+12312312",
"lastName": "",
"status": 1,
"firstName": "",
"alias": "c15",
"state": 1,
"type": 1,
"priority": 0,
"id": 1191560,
"location": [
48.800876000000002364,
2.0477029999999998289
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
},
"customerInfo": {
"phoneNumber": "+12312312",
"email": "c15@yahoo.com",
"lastName": "",
"firstName": "",
"alias": "c15",
"customData": "",
"id": 1994949,
"location": [
48.800876000000002364,
2.0477029999999998289
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
}
}
},
"matchedLocation": [
48.800833124999996926,
2.0479203125000000618
],
"actualLocation": [
0.0,
0.0
],
"indexInRoute": 3,
"indexInOptimization": 15,
"arrivalTime": 1070,
"timeToNextOrder": 740,
"waitTime": 0,
"numberOfPackagesAtArrival": 49,
"collectedNumberOfPackages": 0,
"deliveredNumberOfPackages": 1,
"weightAtArrival": 38.899997711181640625,
"collectedWeight": 0.0,
"deliveredWeight": 3.2999999523162841797,
"cubeAtArrival": 6.0999999046325683594,
"collectedCube": 0.0,
"deliveredCube": 0.10000000149011611938,
"traveledDistance": 31.265277862548828125,
"distanceToNextOrder": 10.81719207763671875,
"revenueAtArrival": 16.600000381469726562,
"visitTimestamp": 0
},
{
"orderInfo": {
"revenue": 4.8000001907348632812,
"serviceTime": 1000,
"timeWindow": [
400,
1053
],
"creationTimestamp": 1752745378296,
"cube": 0.40000000596046447754,
"numberOfPackages": 4,
"depotId": 0,
"customData": "",
"weight": 1.3999999761581420898,
"phoneNumber": "+12312312",
"lastName": "",
"status": 1,
"firstName": "",
"alias": "c16",
"state": 1,
"type": 0,
"priority": 0,
"id": 1191561,
"location": [
48.828673000000001991,
1.9544280000000000541
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
},
"customerInfo": {
"phoneNumber": "+12312312",
"email": "c16@yahoo.com",
"lastName": "",
"firstName": "",
"alias": "c16",
"customData": "",
"id": 1994950,
"location": [
48.828673000000001991,
1.9544280000000000541
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
}
}
},
"matchedLocation": [
48.82883499999999799,
1.9546618749999999931
],
"actualLocation": [
0.0,
0.0
],
"indexInRoute": 4,
"indexInOptimization": 16,
"arrivalTime": 1053,
"timeToNextOrder": 577,
"waitTime": 0,
"numberOfPackagesAtArrival": 48,
"collectedNumberOfPackages": 4,
"deliveredNumberOfPackages": 0,
"weightAtArrival": 35.59999847412109375,
"collectedWeight": 1.3999999761581420898,
"deliveredWeight": 0.0,
"cubeAtArrival": 6.0,
"collectedCube": 0.40000000596046447754,
"deliveredCube": 0.0,
"traveledDistance": 42.082469940185546875,
"distanceToNextOrder": 10.017805099487304688,
"revenueAtArrival": 24.600000381469726562,
"visitTimestamp": 0
},
{
"orderInfo": {
"revenue": 12.100000381469726562,
"serviceTime": 0,
"timeWindow": [
350,
1053
],
"creationTimestamp": 1752745378152,
"cube": 0.5,
"numberOfPackages": 2,
"depotId": 0,
"customData": "",
"weight": 1.2000000476837158203,
"phoneNumber": "+12312312",
"lastName": "",
"status": 1,
"firstName": "",
"alias": "c12",
"state": 1,
"type": 1,
"priority": 0,
"id": 1191557,
"location": [
48.900700999999997975,
1.9998579999999999135
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
},
"customerInfo": {
"phoneNumber": "+12312312",
"email": "c12@yahoo.com",
"lastName": "",
"firstName": "",
"alias": "c12",
"customData": "",
"id": 1994946,
"location": [
48.900700999999997975,
1.9998579999999999135
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
}
}
},
"matchedLocation": [
48.899771250000000578,
2.0015125000000000277
],
"actualLocation": [
0.0,
0.0
],
"indexInRoute": 5,
"indexInOptimization": 12,
"arrivalTime": 1053,
"timeToNextOrder": 283,
"waitTime": 0,
"numberOfPackagesAtArrival": 52,
"collectedNumberOfPackages": 0,
"deliveredNumberOfPackages": 2,
"weightAtArrival": 37.0,
"collectedWeight": 0.0,
"deliveredWeight": 1.2000000476837158203,
"cubeAtArrival": 6.4000000953674316406,
"collectedCube": 0.0,
"deliveredCube": 0.5,
"traveledDistance": 52.10027313232421875,
"distanceToNextOrder": 5.2700471878051757812,
"revenueAtArrival": 29.40000152587890625,
"visitTimestamp": 0
},
{
"orderInfo": {
"revenue": 15.399999618530273438,
"serviceTime": 0,
"timeWindow": [
430,
1020
],
"creationTimestamp": 1752745378331,
"cube": 1.7000000476837158203,
"numberOfPackages": 8,
"depotId": 0,
"customData": "",
"weight": 1.7999999523162841797,
"phoneNumber": "+12312312",
"lastName": "",
"status": 1,
"firstName": "",
"alias": "c17",
"state": 1,
"type": 1,
"priority": 0,
"id": 1191562,
"location": [
48.870528999999997666,
1.9664129999999999665
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
},
"customerInfo": {
"phoneNumber": "+12312312",
"email": "c17@yahoo.com",
"lastName": "",
"firstName": "",
"alias": "c17",
"customData": "",
"id": 1994951,
"location": [
48.870528999999997666,
1.9664129999999999665
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
}
}
},
"matchedLocation": [
48.870168124999999293,
1.9667190624999999482
],
"actualLocation": [
0.0,
0.0
],
"indexInRoute": 6,
"indexInOptimization": 17,
"arrivalTime": 1020,
"timeToNextOrder": 487,
"waitTime": 0,
"numberOfPackagesAtArrival": 50,
"collectedNumberOfPackages": 0,
"deliveredNumberOfPackages": 8,
"weightAtArrival": 35.799999237060546875,
"collectedWeight": 0.0,
"deliveredWeight": 1.7999999523162841797,
"cubeAtArrival": 5.9000000953674316406,
"collectedCube": 0.0,
"deliveredCube": 1.7000000476837158203,
"traveledDistance": 57.370319366455078125,
"distanceToNextOrder": 7.3657321929931640625,
"revenueAtArrival": 41.5,
"visitTimestamp": 0
},
{
"orderInfo": {
"revenue": 5.1999998092651367188,
"serviceTime": 500,
"timeWindow": [
540,
1020
],
"creationTimestamp": 1752745378184,
"cube": 0.20000000298023223877,
"numberOfPackages": 5,
"depotId": 0,
"customData": "",
"weight": 2.2999999523162841797,
"phoneNumber": "+12312312",
"lastName": "",
"status": 1,
"firstName": "",
"alias": "c13",
"state": 1,
"type": 0,
"priority": 0,
"id": 1191558,
"location": [
48.868800999999997714,
2.0351370000000001959
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
},
"customerInfo": {
"phoneNumber": "+12312312",
"email": "c13@yahoo.com",
"lastName": "",
"firstName": "",
"alias": "c13",
"customData": "",
"id": 1994947,
"location": [
48.868800999999997714,
2.0351370000000001959
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
}
}
},
"matchedLocation": [
48.868070312500002217,
2.0358281250000000995
],
"actualLocation": [
0.0,
0.0
],
"indexInRoute": 7,
"indexInOptimization": 13,
"arrivalTime": 1020,
"timeToNextOrder": 338,
"waitTime": 0,
"numberOfPackagesAtArrival": 42,
"collectedNumberOfPackages": 5,
"deliveredNumberOfPackages": 0,
"weightAtArrival": 34.0,
"collectedWeight": 2.2999999523162841797,
"deliveredWeight": 0.0,
"cubeAtArrival": 4.1999998092651367188,
"collectedCube": 0.20000000298023223877,
"deliveredCube": 0.0,
"traveledDistance": 64.736053466796875,
"distanceToNextOrder": 4.6299228668212890625,
"revenueAtArrival": 56.90000152587890625,
"visitTimestamp": 0
},
{
"orderInfo": {
"revenue": 10.0,
"serviceTime": 900,
"timeWindow": [
350,
1053
],
"creationTimestamp": 1752745377934,
"cube": 1.7000000476837158203,
"numberOfPackages": 9,
"depotId": 0,
"customData": "",
"weight": 13.5,
"phoneNumber": "+12312312",
"lastName": "",
"status": 1,
"firstName": "",
"alias": "c5",
"state": 1,
"type": 1,
"priority": 0,
"id": 1191550,
"location": [
48.892580000000002372,
2.0816449999999999676
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
},
"customerInfo": {
"phoneNumber": "+12312312",
"email": "c5@yahoo.com",
"lastName": "",
"firstName": "",
"alias": "c5",
"customData": "",
"id": 1994939,
"location": [
48.892580000000002372,
2.0816449999999999676
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
}
}
},
"matchedLocation": [
48.892694062499998608,
2.0821800000000001418
],
"actualLocation": [
0.0,
0.0
],
"indexInRoute": 8,
"indexInOptimization": 5,
"arrivalTime": 1053,
"timeToNextOrder": 665,
"waitTime": 0,
"numberOfPackagesAtArrival": 47,
"collectedNumberOfPackages": 0,
"deliveredNumberOfPackages": 9,
"weightAtArrival": 36.299999237060546875,
"collectedWeight": 0.0,
"deliveredWeight": 13.5,
"cubeAtArrival": 4.3999996185302734375,
"collectedCube": 0.0,
"deliveredCube": 1.7000000476837158203,
"traveledDistance": 69.36597442626953125,
"distanceToNextOrder": 7.0969409942626953125,
"revenueAtArrival": 62.100002288818359375,
"visitTimestamp": 0
},
{
"orderInfo": {
"revenue": 13.399999618530273438,
"serviceTime": 500,
"timeWindow": [
540,
1020
],
"creationTimestamp": 1752745377964,
"cube": 1.2000000476837158203,
"numberOfPackages": 5,
"depotId": 0,
"customData": "",
"weight": 7.5,
"phoneNumber": "+12312312",
"lastName": "",
"status": 1,
"firstName": "",
"alias": "c6",
"state": 1,
"type": 0,
"priority": 0,
"id": 1191551,
"location": [
48.891778999999999655,
2.149100999999999928
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
},
"customerInfo": {
"phoneNumber": "+12312312",
"email": "c6@yahoo.com",
"lastName": "",
"firstName": "",
"alias": "c6",
"customData": "",
"id": 1994940,
"location": [
48.891778999999999655,
2.149100999999999928
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
}
}
},
"matchedLocation": [
48.891826874999999575,
2.1491809375000001658
],
"actualLocation": [
0.0,
0.0
],
"indexInRoute": 9,
"indexInOptimization": 6,
"arrivalTime": 1020,
"timeToNextOrder": 620,
"waitTime": 0,
"numberOfPackagesAtArrival": 38,
"collectedNumberOfPackages": 5,
"deliveredNumberOfPackages": 0,
"weightAtArrival": 22.799999237060546875,
"collectedWeight": 7.5,
"deliveredWeight": 0.0,
"cubeAtArrival": 2.6999995708465576172,
"collectedCube": 1.2000000476837158203,
"deliveredCube": 0.0,
"traveledDistance": 76.46291351318359375,
"distanceToNextOrder": 4.9191651344299316406,
"revenueAtArrival": 72.100006103515625,
"visitTimestamp": 0
},
{
"orderInfo": {
"revenue": 24.5,
"serviceTime": 0,
"timeWindow": [
420,
1086
],
"creationTimestamp": 1752745377810,
"cube": 0.10000000149011611938,
"numberOfPackages": 1,
"depotId": 0,
"customData": "",
"weight": 1.1000000238418579102,
"phoneNumber": "+12312312",
"lastName": "",
"status": 1,
"firstName": "",
"alias": "c1",
"state": 1,
"type": 0,
"priority": 0,
"id": 1191546,
"location": [
48.914830999999999506,
2.1685910000000001574
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
},
"customerInfo": {
"phoneNumber": "+12312312",
"email": "c1@yahoo.com",
"lastName": "",
"firstName": "",
"alias": "c1",
"customData": "",
"id": 1994935,
"location": [
48.914830999999999506,
2.1685910000000001574
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
}
}
},
"matchedLocation": [
48.914680625000002578,
2.168743437499999871
],
"actualLocation": [
0.0,
0.0
],
"indexInRoute": 10,
"indexInOptimization": 1,
"arrivalTime": 1086,
"timeToNextOrder": 713,
"waitTime": 0,
"numberOfPackagesAtArrival": 43,
"collectedNumberOfPackages": 1,
"deliveredNumberOfPackages": 0,
"weightAtArrival": 30.299999237060546875,
"collectedWeight": 1.1000000238418579102,
"deliveredWeight": 0.0,
"cubeAtArrival": 3.8999996185302734375,
"collectedCube": 0.10000000149011611938,
"deliveredCube": 0.0,
"traveledDistance": 81.382080078125,
"distanceToNextOrder": 5.1692380905151367188,
"revenueAtArrival": 85.50000762939453125,
"visitTimestamp": 0
},
{
"orderInfo": {
"revenue": 7.5,
"serviceTime": 600,
"timeWindow": [
480,
1086
],
"creationTimestamp": 1752745377902,
"cube": 0.40000000596046447754,
"numberOfPackages": 9,
"depotId": 0,
"customData": "",
"weight": 16.200000762939453125,
"phoneNumber": "+12312312",
"lastName": "",
"status": 1,
"firstName": "",
"alias": "c4",
"state": 1,
"type": 0,
"priority": 0,
"id": 1191549,
"location": [
48.928086000000000411,
2.2176749999999998408
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
},
"customerInfo": {
"phoneNumber": "+12312312",
"email": "c4@yahoo.com",
"lastName": "",
"firstName": "",
"alias": "c4",
"customData": "",
"id": 1994938,
"location": [
48.928086000000000411,
2.2176749999999998408
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
}
}
},
"matchedLocation": [
48.928182187499999145,
2.2175459375000001749
],
"actualLocation": [
0.0,
0.0
],
"indexInRoute": 11,
"indexInOptimization": 4,
"arrivalTime": 1086,
"timeToNextOrder": 585,
"waitTime": 0,
"numberOfPackagesAtArrival": 44,
"collectedNumberOfPackages": 9,
"deliveredNumberOfPackages": 0,
"weightAtArrival": 31.399999618530273438,
"collectedWeight": 16.200000762939453125,
"deliveredWeight": 0.0,
"cubeAtArrival": 3.9999995231628417969,
"collectedCube": 0.40000000596046447754,
"deliveredCube": 0.0,
"traveledDistance": 86.5513153076171875,
"distanceToNextOrder": 5.3488130569458007812,
"revenueAtArrival": 110.00000762939453125,
"visitTimestamp": 0
},
{
"orderInfo": {
"revenue": 29.100000381469726562,
"serviceTime": 200,
"timeWindow": [
435,
1020
],
"creationTimestamp": 1752745378392,
"cube": 0.60000002384185791016,
"numberOfPackages": 3,
"depotId": 0,
"customData": "",
"weight": 3.5,
"phoneNumber": "+12312312",
"lastName": "",
"status": 1,
"firstName": "",
"alias": "c19",
"state": 1,
"type": 0,
"priority": 0,
"id": 1191564,
"location": [
48.970061000000001172,
2.1993459999999998011
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
},
"customerInfo": {
"phoneNumber": "+12312312",
"email": "c19@yahoo.com",
"lastName": "",
"firstName": "",
"alias": "c19",
"customData": "",
"id": 1994953,
"location": [
48.970061000000001172,
2.1993459999999998011
],
"address": {
"streetNumber": "",
"postalCode": "",
"streetName": "",
"county": "",
"state": "",
"extra": "",
"city": "",
"country": ""
}
}
},
"matchedLocation": [
48.969900000000002649,
2.1991712500000000219
],
"actualLocation": [
0.0,
0.0
],
"indexInRoute": 12,
"indexInOptimization": 19,
"arrivalTime": 1020,
"timeToNextOrder": 655,
"waitTime": 0,
"numberOfPackagesAtArrival": 53,
"collectedNumberOfPackages": 3,
"deliveredNumberOfPackages": 0,
"weightAtArrival": 47.59999847412109375,
"collectedWeight": 3.5,
"deliveredWeight": 0.0,
"cubeAtArrival": 4.3999996185302734375,
"collectedCube": 0.60000002384185791016,
"deliveredCube": 0.0,
"traveledDistance": 91.9001312255859375,
"distanceToNextOrder": 5.9529738426208496094,
"revenueAtArrival": 117.50000762939453125,
"visitTimestamp": 0
}
],
"totalTime": 30916,
"totalDistance": 97.8531036376953125,
"id": 273024
}
]
}
Analyzing the Solution - Paris Route Optimization Test

Summary Table
| Metric | Part 0 | Part 1 |
|---|---|---|
| Total Distance | 23.72 km | 97.85 km |
| Total Time | 1 hr 38 min 27 sec | 7 hrs 43 min 35 sec |
| Cost | €2.40 | €9.90 |
| Departure Point | Depot 1 | Depot 2 |
| Departure Time | 06:46:51 (07/08/2020) | 06:31:20 (07/08/2020) |
| Destination | Destination 1 | Destination 2 |
| Arrival Time | 08:51:59 | 15:06:36 |
| Total Stops | 7 | 13 |
| Pickups | 3 | 9 |
| Deliveries | 4 | 4 |
Route Insights
-
Route 1 (Part 0) completed a mix of 7 tasks (pickups and deliveries) over a distance of 23.72 km, with a total estimated cost of €2.40. Starting from Depot 1, the vehicle begins with a pickup at Order 1 and promptly delivers to Order 8. It continues with alternating stops—picking up at Order 19 and Order 3, while making deliveries at Order 9, Order 4, and finally Order 15 before concluding its compact and efficient loop at Destination 1.
-
Route 2 (Part 1) handled 13 tasks, covering a much larger distance of 97.85 km, with a cost of €9.90. Departing from Depot 2, the vehicle begins its journey with a series of strategic pickups—from Order 10, Order 11, and Order 12—before making its first delivery at Order 16. It continues with alternating pickups and deliveries through Order 17, Order 13, Order 18, and Order 14, offloading significantly at Order 6. Additional pickups at Order 7, Order 2, Order 5, and Order 20 complete the load before the vehicle concludes its efficient, capacity-aware route at Destination 2.
Operational Highlights
- Total Distance Covered: Both routes together span 121.57 km, efficiently servicing a mix of pickups and deliveries across Paris.
- Time Window Compliance: All orders were serviced within their configured time windows, with zero wait times, indicating optimal scheduling.
- Load Management: Vehicle loads (pieces, weight, and volume) are dynamically managed, ensuring no overloads and smooth transitions between orders.
- Cost Efficiency: The cost per route reflects both distance and operational complexity, with the longer route incurring higher expenses due to increased orders and load handling.
Conclusion
The Paris optimization demonstrates how the Fleet Management Rest API can efficiently plan and execute complex delivery and pickup operations. This guide has walked you through the process of creating a fully customized optimization, defining orders and vehicles, and visualizing the results on a map. By following these steps, you can adapt this example to your specific use case and integrate it into your fleet management workflow.