Automate Dispatching Activities


Automating dispatching and route planning activities has never been this easy. The API solution developed by the Munich based company Synertics provides an individually customizable algorithm that allows companies to efficiently automate the allocation of resources. The solution was built to function as easily as possible, while taking care of all complex development related blocks, such as the algorithm, scalability, mapping infrastructure etc. Facility management companies, which continuously need to assign incoming orders, mobility companies that send out teams for maintenance/battery swapping/charging and relocation tasks and food chains to distribute orders to individual restaurants are just some of the types of companies, which can benefit from the use of the API.

Each API request is divided into the sections driver, order, index and constraints. Each request can have multiple drivers and orders, but only one index and one capacity. The driver input defines the identity and location of the individual drivers. The order section defines the identity and location of individual orders as well as their buffer and priority variables. The buffer value represents the time in minutes each order takes to complete. The value of an order is a numeric value that can represent anything between a priority level to a monetary value. The index section defines the order levels by which the orders shall be divided among the drivers and how the route planning shall be structured. The capacity variable defines the maximum number of orders that should be assigned to a single driver. The variable types to each individual section can be seen below.

Request Section

Driver:

Variable Datatypes Required
identification string yes
longitude float yes
latitude float yes

Order:

Variable Datatypes Required
identification string yes
longitude float yes
latitude float yes
buffer float No
worth float No

Index:

Variable Datatypes Required
distance_index float No
duration_index float No
worth_index float No

Constraints:

Variable Datatypes Required
max_orders_per_driver integer No

The response section of each section is divided in the following sections.

More indepth detail on the structure of the response can be found here

Getting the API Key:

Start by retrieving a free API key through the website https://synertics.io. Insert your e-mail in the field and sign up, in account page you will find your unique API Key, which currently gets you 1.500 free requests per month. Each time you do a request with the API Key, the latest end results will be shown in the map section of your account for you to assess.

How to use the API with your requirements?

Let’s make our first request. In the code below you can find a request with sample data including 30 orders and 3 drivers in the city of Munich. Since no capacity and index sections have been included, the algorithm will assume the defaults seen in the table above.

import requests
import json

url = "https://synertics.io/dispatching/trips/"

payload = json.dumps({
    "orders": [
    {
        "identification": 0,
        "longitude": 11.647477702803526,
        "latitude": 48.131910290307374,
        "buffer": 21.0,
        "worth": 10.0
    },
    {
        "identification": 1,
        "longitude": 11.510436233069143,
        "latitude": 48.15286184869278,
        "buffer": 55.0,
        "worth": 19.0
    },
    {
        "identification": 2,
        "longitude": 11.585734425447335,
        "latitude": 48.205859621907955,
        "buffer": 11.0,
        "worth": 21.0
    },
    {
        "identification": 3,
        "longitude": 11.518329493284998,
        "latitude": 48.09541502491864,
        "buffer": 87.0,
        "worth": 12.0
    },
    {
        "identification": 4,
        "longitude": 11.556557878071771,
        "latitude": 48.0620789968801,
        "buffer": 67.0,
        "worth": 17.0
    },
    {
        "identification": 5,
        "longitude": 11.611525442144814,
        "latitude": 48.06253548647114,
        "buffer": 3.0,
        "worth": 22.0
    },
    {
        "identification": 6,
        "longitude": 11.52915436007679,
        "latitude": 48.1939665196079,
        "buffer": 65.0,
        "worth": 11.0
    },
    {
        "identification": 7,
        "longitude": 11.545259805123145,
        "latitude": 48.16971049703524,
        "buffer": 67.0,
        "worth": 14.0
    },
    {
        "identification": 8,
        "longitude": 11.600951582777027,
        "latitude": 48.06367948985524,
        "buffer": 93.0,
        "worth": 16.0
    },
    {
        "identification": 9,
        "longitude": 11.646984457515591,
        "latitude": 48.150356946631526,
        "buffer": 78.0,
        "worth": 5.0
    },
    {
        "identification": 10,
        "longitude": 11.622830543572896,
        "latitude": 48.11074705272336,
        "buffer": 16.0,
        "worth": 18.0
    },
    {
        "identification": 11,
        "longitude": 11.523889207728498,
        "latitude": 48.0700130886704,
        "buffer": 78.0,
        "worth": 23.0
    },
    {
        "identification": 12,
        "longitude": 11.554896160930987,
        "latitude": 48.10302441962848,
        "buffer": 96.0,
        "worth": 13.0
    },
    {
        "identification": 13,
        "longitude": 11.56016217640396,
        "latitude": 48.18993574402319,
        "buffer": 65.0,
        "worth": 5.0
    },
    {
        "identification": 14,
        "longitude": 11.55919609996088,
        "latitude": 48.14514208172484,
        "buffer": 33.0,
        "worth": 13.0
    },
    {
        "identification": 15,
        "longitude": 11.644915216096903,
        "latitude": 48.16209419275188,
        "buffer": 68.0,
        "worth": 6.0
    },
    {
        "identification": 16,
        "longitude": 11.638010364306039,
        "latitude": 48.11946950135317,
        "buffer": 84.0,
        "worth": 20.0
    },
    {
        "identification": 17,
        "longitude": 11.523909983639937,
        "latitude": 48.07902359091615,
        "buffer": 42.0,
        "worth": 17.0
    },
    {
        "identification": 18,
        "longitude": 11.58261131021289,
        "latitude": 48.19408096498202,
        "buffer": 78.0,
        "worth": 16.0
    },
    {
        "identification": 19,
        "longitude": 11.609089347327203,
        "latitude": 48.198835916974964,
        "buffer": 82.0,
        "worth": 14.0
    },
    {
        "identification": 20,
        "longitude": 11.543886907718498,
        "latitude": 48.19374952241109,
        "buffer": 99.0,
        "worth": 16.0
    },
    {
        "identification": 21,
        "longitude": 11.636442317794996,
        "latitude": 48.12629821034275,
        "buffer": 66.0,
        "worth": 7.0
    },
    {
        "identification": 22,
        "longitude": 11.514923001126496,
        "latitude": 48.110416412713704,
        "buffer": 16.0,
        "worth": 6.0
    },
    {
        "identification": 23,
        "longitude": 11.532929530021773,
        "latitude": 48.12401031591571,
        "buffer": 99.0,
        "worth": 22.0
    },
    {
        "identification": 24,
        "longitude": 11.593799405893227,
        "latitude": 48.14550239100494,
        "buffer": 4.0,
        "worth": 7.0
    },
    {
        "identification": 25,
        "longitude": 11.617438993959446,
        "latitude": 48.132236223900556,
        "buffer": 26.0,
        "worth": 19.0
    },
    {
        "identification": 26,
        "longitude": 11.612210183222194,
        "latitude": 48.07018403305119,
        "buffer": 31.0,
        "worth": 20.0
    },
    {
        "identification": 27,
        "longitude": 11.492435977859387,
        "latitude": 48.1288092829977,
        "buffer": 96.0,
        "worth": 22.0
    },
    {
        "identification": 28,
        "longitude": 11.610635827894018,
        "latitude": 48.09718145941923,
        "buffer": 59.0,
        "worth": 23.0
    },
    {
        "identification": 29,
        "longitude": 11.636663222665115,
        "latitude": 48.12805731026106,
        "buffer": 62.0,
        "worth": 5.0
    }
],
   "drivers":[
    {
        "identification": 30,
        "longitude": 11.61146088159362,
        "latitude": 48.122906242512784
    },
    {
        "identification": 31,
        "longitude": 11.51443209027312,
        "latitude": 48.12354538823511
    },
    {
        "identification": 32,
        "longitude": 11.647314944349938,
        "latitude": 48.190141561800544
    }
]
})

headers = {
    'Authorization': 'TOKEN '+YourKey,
    'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

Response:

{
  "trips": [
    {
      "id": "df7aeacaa8b7027e2586e131c",
      "orders": [
        {
          "id": "ec87529d7111f5_068a730606",
          "start_time": 1646899754.4,
          "end_time": 1646899948.0,
          "arrival_time": 1646899945.0,
          "stop_id": 12,
          "identification": "5",
          "buffer": 3.0,
          "latitude": 48.06253548647114,
          "longitude": 11.611525442144814,
          "worth": 22.0,
          "duration": 190.6,
          "distance": 1185.0
        },
        {
          "id": "94c60_b0a_d41eb0f9fb3013c",
          "start_time": 1646896633.1000001,
          "end_time": 1646896915.3000002,
          "arrival_time": 1646896847.3000002,
          "stop_id": 5,
          "identification": "15",
          "buffer": 68.0,
          "latitude": 48.16209419275188,
          "longitude": 11.644915216096903,
          "worth": 6.0,
          "duration": 214.2,
          "distance": 1830.2
        },
        {
          "id": "1_eb42cbabe1f9377cb7c0dc6",
          "start_time": 1646898074.5000002,
          "end_time": 1646898452.8000002,
          "arrival_time": 1646898368.8000002,
          "stop_id": 8,
          "identification": "16",
          "buffer": 84.0,
          "latitude": 48.11946950135317,
          "longitude": 11.638010364306039,
          "worth": 20.0,
          "duration": 294.3,
          "distance": 2123.9
        },
        {
          "id": "2462fd46132c3e93db9077_07",
          "start_time": 1646899948.0,
          "end_time": 1646900502.0,
          "arrival_time": 1646900409.0,
          "stop_id": 13,
          "identification": "8",
          "buffer": 93.0,
          "latitude": 48.06367948985524,
          "longitude": 11.600951582777027,
          "worth": 16.0,
          "duration": 461.0,
          "distance": 2260.6
        },
        {
          "id": "e59f83ef9b5_3ac201_29_e42",
          "start_time": 1646895600.0,
          "end_time": 1646895786.9,
          "arrival_time": 1646895760.9,
          "stop_id": 1,
          "identification": "25",
          "buffer": 26.0,
          "latitude": 48.132236223900556,
          "longitude": 11.617438993959446,
          "worth": 19.0,
          "duration": 160.9,
          "distance": 1466.3
        },
        {
          "id": "d63a2e0178730c7db4c421d17",
          "start_time": 1646895786.9,
          "end_time": 1646896039.6000001,
          "arrival_time": 1646895973.6000001,
          "stop_id": 2,
          "identification": "21",
          "buffer": 66.0,
          "latitude": 48.12629821034275,
          "longitude": 11.636442317794996,
          "worth": 7.0,
          "duration": 186.7,
          "distance": 1783.0
        },
        {
          "id": "d5c2503d7_faceeb0_9f68204",
          "start_time": 1646896039.6000001,
          "end_time": 1646896158.6000001,
          "arrival_time": 1646896096.6000001,
          "stop_id": 3,
          "identification": "29",
          "buffer": 62.0,
          "latitude": 48.12805731026106,
          "longitude": 11.636663222665115,
          "worth": 5.0,
          "duration": 57.0,
          "distance": 417.7
        },
        {
          "id": "2057ce1a19aba8ad6e30daf97",
          "start_time": 1646898720.9,
          "end_time": 1646899228.1000001,
          "arrival_time": 1646899169.1000001,
          "stop_id": 10,
          "identification": "28",
          "buffer": 59.0,
          "latitude": 48.09718145941923,
          "longitude": 11.610635827894018,
          "worth": 23.0,
          "duration": 448.2,
          "distance": 3795.7
        },
        {
          "id": "c7_221ca5b6136e3caac7b_83",
          "start_time": 1646899228.1000001,
          "end_time": 1646899754.4,
          "arrival_time": 1646899723.4,
          "stop_id": 11,
          "identification": "26",
          "buffer": 31.0,
          "latitude": 48.07018403305119,
          "longitude": 11.612210183222194,
          "worth": 20.0,
          "duration": 495.3,
          "distance": 4588.0
        },
        {
          "id": "17b8c17e95fd605d9d682c01f",
          "start_time": 1646896158.6000001,
          "end_time": 1646896633.1000001,
          "arrival_time": 1646896555.1000001,
          "stop_id": 4,
          "identification": "9",
          "buffer": 78.0,
          "latitude": 48.150356946631526,
          "longitude": 11.646984457515591,
          "worth": 5.0,
          "duration": 396.5,
          "distance": 3558.6
        },
        {
          "id": "e4537012c3412f13_7d2698d2",
          "start_time": 1646896915.3000002,
          "end_time": 1646897409.6000001,
          "arrival_time": 1646897405.6000001,
          "stop_id": 6,
          "identification": "24",
          "buffer": 4.0,
          "latitude": 48.14550239100494,
          "longitude": 11.593799405893227,
          "worth": 7.0,
          "duration": 490.3,
          "distance": 4821.0
        },
        {
          "id": "3612d7db068ee79658e60df2f",
          "start_time": 1646897409.6000001,
          "end_time": 1646898074.5000002,
          "arrival_time": 1646898053.5000002,
          "stop_id": 7,
          "identification": "0",
          "buffer": 21.0,
          "latitude": 48.131910290307374,
          "longitude": 11.647477702803526,
          "worth": 10.0,
          "duration": 643.9,
          "distance": 5378.3
        },
        {
          "id": "_a4ed62bdf347861f01_4bf40",
          "start_time": 1646898452.8000002,
          "end_time": 1646898720.9,
          "arrival_time": 1646898704.9,
          "stop_id": 9,
          "identification": "10",
          "buffer": 16.0,
          "latitude": 48.11074705272336,
          "longitude": 11.622830543572896,
          "worth": 18.0,
          "duration": 252.1,
          "distance": 2041.3
        }
      ],
      "driver": {
        "id": "e9359fe0beeeab_a2_d_ccfa3",
        "identification": "30",
        "latitude": 48.122906242512784,
        "longitude": 11.61146088159362
      },
      "total_duration": 4902.0,
      "total_distance": 35249.6,
      "start_time": 1646895600.0,
      "end_time": 1646900502.0,
      "polyline": "BF467mCqg3lJCGI0BAECY2BDgCBuBD6BBiCDYBHnCDhCeAO8EQuEK4CAGCQCMCUYuFQwCQ8BQiCGQOmBEKGQIYKcSyBSmBWoBkDgFcuBmB2BSYIIuB4BiB6BMcOoBUyBMcEMEMSD-CNeD0CLGKEGEIGMEKuB-CqB6CgBkCfjCoFdsBFqEXiK3BkGjB2BHgBF6BN-ElBDHvBrCPdRjBHNDNDHDLADABFNYBWDiGX8BHyFbyHjBsBFqGf-BJwCT-BPuDf6F1BGBoBJsBH-CVuCR8CV4CVsCTgDXYFoDVmDVQDaFiBF4BL6DTyHrBFNpBhCVhBWiBqBiCGOkCNiCNiDPIBsBDBMAEAMfE5BI7CQjEaGOGQ0BgEFCDCDGCGCEAAAABDBFEFEBGBzB_DFPFNlDS_CUhBItBIvCSNEhBGbG5BK9BMpDWZGpEgB3G4BvBMHCLCtCWNElBKIMGKU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XIXKfGNGVe5DENMtBRB9CTjEhB3BNZHEDMRCACDmBpBuBzBgBhBdLHDJDLBnBHZDdFdFhBHZNRNJLJLHTJxBFzBBNDVBTDlBCtBGLONMHWNUHqBJeHmCNmCLkBFgBFMDUFKDOHQLMJKLINITCPDjDAjBDNFJDHJJNLHFvBfPNTRHHJLDLBPBVBvBCJCJIJIFOFMFgBFgBFoCJEBqCFBZAJEJIPGRIRCVCpBBRBrBDrCDzBBpBARFvCBbDvBBfVxCBbG_CB1BH5BRnCThCTzBPjBRpBRTXPTHXDlCC3HEtDC7EEnCCxCCLCNATBRBTBJCHAJBVBXCfCjBCRBvCClBAbCxECPApBCrBA5FEfABMJINGNCCUAcE4BUqBO6LhWOauT"
    },
    {
      "id": "d1bff1_60f99_005a8_f3e78b",
      "orders": [
        {
          "id": "4ba14a4_3892e77e63062515f",
          "start_time": 1646896426.3,
          "end_time": 1646897263.1,
          "arrival_time": 1646897196.1,
          "stop_id": 3,
          "identification": "4",
          "buffer": 67.0,
          "latitude": 48.0620789968801,
          "longitude": 11.556557878071771,
          "worth": 17.0,
          "duration": 769.8,
          "distance": 6530.5
        },
        {
          "id": "f79fac3f08eb90552c1f5d1b7",
          "start_time": 1646900121.0000002,
          "end_time": 1646900652.9000003,
          "arrival_time": 1646900597.9000003,
          "stop_id": 9,
          "identification": "1",
          "buffer": 55.0,
          "latitude": 48.15286184869278,
          "longitude": 11.510436233069143,
          "worth": 19.0,
          "duration": 476.9,
          "distance": 3894.7
        },
        {
          "id": "_74f752a828a140d3fc8d7d60",
          "start_time": 1646895796.8,
          "end_time": 1646896426.3,
          "arrival_time": 1646896330.3,
          "stop_id": 2,
          "identification": "12",
          "buffer": 96.0,
          "latitude": 48.10302441962848,
          "longitude": 11.554896160930987,
          "worth": 13.0,
          "duration": 533.5,
          "distance": 5036.2
        },
        {
          "id": "f086bbd7_04d3f901f17b52a3",
          "start_time": 1646897263.1,
          "end_time": 1646898437.6,
          "arrival_time": 1646898359.6,
          "stop_id": 4,
          "identification": "11",
          "buffer": 78.0,
          "latitude": 48.0700130886704,
          "longitude": 11.523889207728498,
          "worth": 23.0,
          "duration": 1096.5,
          "distance": 10563.3
        },
        {
          "id": "e5c6bff_0f64bc1ce29e55214",
          "start_time": 1646898437.6,
          "end_time": 1646898672.0,
          "arrival_time": 1646898630.0,
          "stop_id": 5,
          "identification": "17",
          "buffer": 42.0,
          "latitude": 48.07902359091615,
          "longitude": 11.523909983639937,
          "worth": 17.0,
          "duration": 192.4,
          "distance": 1422.5
        },
        {
          "id": "2f589bae1c89c06cc55f5c730",
          "start_time": 1646895600.0,
          "end_time": 1646895796.8,
          "arrival_time": 1646895780.8,
          "stop_id": 1,
          "identification": "22",
          "buffer": 16.0,
          "latitude": 48.110416412713704,
          "longitude": 11.514923001126496,
          "worth": 6.0,
          "duration": 180.8,
          "distance": 1918.1
        },
        {
          "id": "74a2a0b8636e2594ed13__7_9",
          "start_time": 1646899050.4,
          "end_time": 1646899625.3000002,
          "arrival_time": 1646899526.3000002,
          "stop_id": 7,
          "identification": "23",
          "buffer": 99.0,
          "latitude": 48.12401031591571,
          "longitude": 11.532929530021773,
          "worth": 22.0,
          "duration": 475.9,
          "distance": 4240.6
        },
        {
          "id": "b617e5dbb8f1f2b95ec5_2751",
          "start_time": 1646899625.3000002,
          "end_time": 1646900121.0000002,
          "arrival_time": 1646900025.0000002,
          "stop_id": 8,
          "identification": "27",
          "buffer": 96.0,
          "latitude": 48.1288092829977,
          "longitude": 11.492435977859387,
          "worth": 22.0,
          "duration": 399.7,
          "distance": 4399.6
        },
        {
          "id": "12a1_bf92fc614d7c759ba55d",
          "start_time": 1646898672.0,
          "end_time": 1646899050.4,
          "arrival_time": 1646898963.4,
          "stop_id": 6,
          "identification": "3",
          "buffer": 87.0,
          "latitude": 48.09541502491864,
          "longitude": 11.518329493284998,
          "worth": 12.0,
          "duration": 291.4,
          "distance": 2390.2
        }
      ],
      "driver": {
        "id": "e0d_db9e9c895b7_187b_3c40",
        "identification": "31",
        "latitude": 48.12354538823511,
        "longitude": 11.51443209027312
      },
      "total_duration": 5052.900000333786,
      "total_distance": 40395.7,
      "start_time": 1646895600.0,
      "end_time": 1646900652.9000003,
      "polyline": "BFg_omCmo3lJgGlB-DVqGhBsDToDP-BLmBJcLKDOJOJSREDIPIPCNCRDjBrB9BtBhCjBvBXrBlBvCzB3DnE3JnC3ElB5CR_CJzIVhCDpBC9BErDAjBEPKvBC1BAjBAJATCtBEPOnCMxBQrBiBhCKPgBrBbRXPnFxCxD5BLFtCnBjCjBkCkBuCoBMGyD6BnBqBf2BJaHeToCRoCBqCDmBBQeAsBA-BByBASAeCEPOnCMxBQrBiBhCKPgBrByB5BmBjBSPIFIJiBdEBiBdQN2D_CKHULeLaFQDkBFqBFyBDgDDmHBgCAyDI0BI8EAmGA-HDiNBmDE-BE8CMsDMyEQyDOoLuB6EOoDGyDEuFCqJAoJGiECwDA6DGyBCwBEuBIyBKqBE0BQ8BUyBUkCgBsCiBoCaoBKkBK2BGiCQYEiBImBGeESEgBCuBIoEM-FS4DKgBCyBGUAqBEHTHLRddrB9B1CjBxBhDjELNhC3CrE5FLPBDJJHJ7B_BrBrBdhBXlBPdRjBNhBJtBFtBBtBC5BEvBM1BO3BITKbY5BkB1CILwBvDMpBItBI3CClCEnCGtBGVITCFGNIJOPGFIHULOFMDSHYL0CXWH-BRoBLaJyBNcDUBGA8DL2LfGAgBBaB0CA2CBkBBiBDcDaDUGmDkB4DuBmByBMSkBAkCIKAJAjCHjBALRlBxB3DtBlDjBTFoBJ0Dd4BLwBJyBF-BDqCD4BFqBFoBD-CVqCRiCRoBJqBLUDSBOAMASCQGeKgFmCWMSHWHWHEBoBPeNQJMJOPKJkBtBCBEHAJBHBF1BhCLNDD1FlG7DnENRHPFXA7BDbzEzDrBjBJNBLELIHSLQHmBPoBNQDKEOMiBaKKMMYSYMYIYIMCeA4BDiEJ8DF6CBIA8CAoDC6CEmBCSCkBEMAiDKgBEaCFbBLNrBLvBRxCL5BHlB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ASCaAMAMCGAIAKAIASE0CAwCCoDAkCCYC2CCeGcGUMqBEKGWEUCOACBOFUFSDMNwBDQHcM8IA2BG2DDOAsBAqBAoBAQAMAcAWAMAWE-BEwEEqECgBAOCMIyBMsBS2BuC2ESeSeKSIOMUMWWiBUSoBUcIQGiIgCuDaWIkBKkCU4BUwBQWIOL2CzCwEtEWVaMqEKBOM6DQkD"
    },
    {
      "id": "6490a5d162517dd7523a5e70_",
      "orders": [
        {
          "id": "0a07a606e5259673719b58611",
          "start_time": 1646896416.0,
          "end_time": 1646896740.3,
          "arrival_time": 1646896729.3,
          "stop_id": 2,
          "identification": "2",
          "buffer": 11.0,
          "latitude": 48.205859621907955,
          "longitude": 11.585734425447335,
          "worth": 21.0,
          "duration": 313.3,
          "distance": 2814.2
        },
        {
          "id": "449c0_0682b7542ef9c488_93",
          "start_time": 1646897768.1,
          "end_time": 1646898209.5,
          "arrival_time": 1646898144.5,
          "stop_id": 6,
          "identification": "6",
          "buffer": 65.0,
          "latitude": 48.1939665196079,
          "longitude": 11.52915436007679,
          "worth": 11.0,
          "duration": 376.4,
          "distance": 2784.3
        },
        {
          "id": "276257d7df84f_a7b6382a8d6",
          "start_time": 1646895600.0,
          "end_time": 1646896416.0,
          "arrival_time": 1646896334.0,
          "stop_id": 1,
          "identification": "19",
          "buffer": 82.0,
          "latitude": 48.198835916974964,
          "longitude": 11.609089347327203,
          "worth": 14.0,
          "duration": 734.0,
          "distance": 6900.0
        },
        {
          "id": "3fb9956a_c7e126b5cbe5cf40",
          "start_time": 1646896986.3999999,
          "end_time": 1646897358.6999998,
          "arrival_time": 1646897293.6999998,
          "stop_id": 4,
          "identification": "13",
          "buffer": 65.0,
          "latitude": 48.18993574402319,
          "longitude": 11.56016217640396,
          "worth": 5.0,
          "duration": 307.3,
          "distance": 2925.6
        },
        {
          "id": "711a7f7f9919481d329f4d9a9",
          "start_time": 1646897358.6999998,
          "end_time": 1646897768.1,
          "arrival_time": 1646897669.1,
          "stop_id": 5,
          "identification": "20",
          "buffer": 99.0,
          "latitude": 48.19374952241109,
          "longitude": 11.543886907718498,
          "worth": 16.0,
          "duration": 310.4,
          "distance": 2533.0
        },
        {
          "id": "e5ce6a7d9401addf3ed31baf_",
          "start_time": 1646898209.5,
          "end_time": 1646898895.1,
          "arrival_time": 1646898828.1,
          "stop_id": 7,
          "identification": "7",
          "buffer": 67.0,
          "latitude": 48.16971049703524,
          "longitude": 11.545259805123145,
          "worth": 14.0,
          "duration": 618.6,
          "distance": 5298.5
        },
        {
          "id": "69b73ec57ad8b0e8238fece4b",
          "start_time": 1646898895.1,
          "end_time": 1646899383.8,
          "arrival_time": 1646899350.8,
          "stop_id": 8,
          "identification": "14",
          "buffer": 33.0,
          "latitude": 48.14514208172484,
          "longitude": 11.55919609996088,
          "worth": 13.0,
          "duration": 455.7,
          "distance": 4202.2
        },
        {
          "id": "7ae7_5c84f9ab52819f0664d1",
          "start_time": 1646896740.3,
          "end_time": 1646896986.3999999,
          "arrival_time": 1646896908.3999999,
          "stop_id": 3,
          "identification": "18",
          "buffer": 78.0,
          "latitude": 48.19408096498202,
          "longitude": 11.58261131021289,
          "worth": 16.0,
          "duration": 168.1,
          "distance": 1459.2
        }
      ],
      "driver": {
        "id": "5af8cf4b00a134db005c51a31",
        "identification": "32",
        "latitude": 48.190141561800544,
        "longitude": 11.647314944349938
      },
      "total_duration": 3783.7999999523163,
      "total_distance": 28917.0,
      "start_time": 1646895600.0,
      "end_time": 1646899383.8,
      "polyline": "BFy7inCsjkmJKAsBDqBBsBBsBDoBBsBB2DHmBAcUoBgC-BmDqBiCGSOBgCH2HXuCHSBFRJfT7BHXHVnBxDFN5D_KHVBHHXDLbvCdxCPzBbvCPxBLdJbRxBHRHbLALAJDHFFFBHlBEtMavEI3EI9FO3BAhCD9BDjCCtDElDEtCC7CGlEKxDOtDQ5IoBvCI9BIrEKnDG9HQ3DG_CG3CGlBCJ7BBhCBhBBdFtBHZPvBJXbtBfrBVXZdFF7BlCNRVZLLPVjB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cLQDEFGJAXAjCJvHZLPP7CAFBZBPAVHxBDZBLBDDFFFJHNFdJtDbtBNVJzBfbRpBbzBb7BbvBT1BTnCbRHRHPHFDXLgF3DUNwBpBCBgC7BefwDvDiBfQRgBdsCrCWVmD1CwBlB4BlBKFgFhD6BjBqCtBmEzCwDjCsBZSJqEzCiF9CYN0CzB8DpCoEzCmBV4C9ByChCSPOR0BtBKJSPKHCBEBCBKHCBSNmDtC0FxEwD5CyChCmDzCwGnF4FzEGFcXgBZoC7B4BpBwBjBUNaRaRmDtCMJiC3BsFrE8CvCGDqBjBqD5CiC1B6BvBEDgBZMLQJKRUhBMXITIPGRGRW9B4B5GCBepDSjCBXBJDZHZrBpEFbFRDJTblC7DFJHPgBLWFKBGBmG1B"
    }
  ],
  "index": {
    "distance_index": 50.0,
    "duration_index": 50.0,
    "worth_index": 0.0
  },
  "constraints": {
    "max_orders_per_driver": 15
  },
  "unassigned_orders": []
}

As seen in the map of your account, the orders were divided among the 3 drivers according to their location and no capacity constraints were applied.

In the previous request the algorithm found the most efficient combination of orders for each driver by minimizing the duration and distance of the each trip. In the next request we will include the index section and prioritize the worth value over distance and duration.

import requests
import json

url = "https://synertics.io/dispatching/trips/"

payload = json.dumps({
    "orders": [
    {
        "identification": 0,
        "longitude": 11.647477702803526,
        "latitude": 48.131910290307374,
        "buffer": 21.0,
        "worth": 10.0
    },
    {
        "identification": 1,
        "longitude": 11.510436233069143,
        "latitude": 48.15286184869278,
        "buffer": 55.0,
        "worth": 19.0
    },
    {
        "identification": 2,
        "longitude": 11.585734425447335,
        "latitude": 48.205859621907955,
        "buffer": 11.0,
        "worth": 21.0
    },
    {
        "identification": 3,
        "longitude": 11.518329493284998,
        "latitude": 48.09541502491864,
        "buffer": 87.0,
        "worth": 12.0
    },
    {
        "identification": 4,
        "longitude": 11.556557878071771,
        "latitude": 48.0620789968801,
        "buffer": 67.0,
        "worth": 17.0
    },
    {
        "identification": 5,
        "longitude": 11.611525442144814,
        "latitude": 48.06253548647114,
        "buffer": 3.0,
        "worth": 22.0
    },
    {
        "identification": 6,
        "longitude": 11.52915436007679,
        "latitude": 48.1939665196079,
        "buffer": 65.0,
        "worth": 11.0
    },
    {
        "identification": 7,
        "longitude": 11.545259805123145,
        "latitude": 48.16971049703524,
        "buffer": 67.0,
        "worth": 14.0
    },
    {
        "identification": 8,
        "longitude": 11.600951582777027,
        "latitude": 48.06367948985524,
        "buffer": 93.0,
        "worth": 16.0
    },
    {
        "identification": 9,
        "longitude": 11.646984457515591,
        "latitude": 48.150356946631526,
        "buffer": 78.0,
        "worth": 5.0
    },
    {
        "identification": 10,
        "longitude": 11.622830543572896,
        "latitude": 48.11074705272336,
        "buffer": 16.0,
        "worth": 18.0
    },
    {
        "identification": 11,
        "longitude": 11.523889207728498,
        "latitude": 48.0700130886704,
        "buffer": 78.0,
        "worth": 23.0
    },
    {
        "identification": 12,
        "longitude": 11.554896160930987,
        "latitude": 48.10302441962848,
        "buffer": 96.0,
        "worth": 13.0
    },
    {
        "identification": 13,
        "longitude": 11.56016217640396,
        "latitude": 48.18993574402319,
        "buffer": 65.0,
        "worth": 5.0
    },
    {
        "identification": 14,
        "longitude": 11.55919609996088,
        "latitude": 48.14514208172484,
        "buffer": 33.0,
        "worth": 13.0
    },
    {
        "identification": 15,
        "longitude": 11.644915216096903,
        "latitude": 48.16209419275188,
        "buffer": 68.0,
        "worth": 6.0
    },
    {
        "identification": 16,
        "longitude": 11.638010364306039,
        "latitude": 48.11946950135317,
        "buffer": 84.0,
        "worth": 20.0
    },
    {
        "identification": 17,
        "longitude": 11.523909983639937,
        "latitude": 48.07902359091615,
        "buffer": 42.0,
        "worth": 17.0
    },
    {
        "identification": 18,
        "longitude": 11.58261131021289,
        "latitude": 48.19408096498202,
        "buffer": 78.0,
        "worth": 16.0
    },
    {
        "identification": 19,
        "longitude": 11.609089347327203,
        "latitude": 48.198835916974964,
        "buffer": 82.0,
        "worth": 14.0
    },
    {
        "identification": 20,
        "longitude": 11.543886907718498,
        "latitude": 48.19374952241109,
        "buffer": 99.0,
        "worth": 16.0
    },
    {
        "identification": 21,
        "longitude": 11.636442317794996,
        "latitude": 48.12629821034275,
        "buffer": 66.0,
        "worth": 7.0
    },
    {
        "identification": 22,
        "longitude": 11.514923001126496,
        "latitude": 48.110416412713704,
        "buffer": 16.0,
        "worth": 6.0
    },
    {
        "identification": 23,
        "longitude": 11.532929530021773,
        "latitude": 48.12401031591571,
        "buffer": 99.0,
        "worth": 22.0
    },
    {
        "identification": 24,
        "longitude": 11.593799405893227,
        "latitude": 48.14550239100494,
        "buffer": 4.0,
        "worth": 7.0
    },
    {
        "identification": 25,
        "longitude": 11.617438993959446,
        "latitude": 48.132236223900556,
        "buffer": 26.0,
        "worth": 19.0
    },
    {
        "identification": 26,
        "longitude": 11.612210183222194,
        "latitude": 48.07018403305119,
        "buffer": 31.0,
        "worth": 20.0
    },
    {
        "identification": 27,
        "longitude": 11.492435977859387,
        "latitude": 48.1288092829977,
        "buffer": 96.0,
        "worth": 22.0
    },
    {
        "identification": 28,
        "longitude": 11.610635827894018,
        "latitude": 48.09718145941923,
        "buffer": 59.0,
        "worth": 23.0
    },
    {
        "identification": 29,
        "longitude": 11.636663222665115,
        "latitude": 48.12805731026106,
        "buffer": 62.0,
        "worth": 5.0
    }
],
   "drivers":[
    {
        "identification": 30,
        "longitude": 11.61146088159362,
        "latitude": 48.122906242512784
    },
    {
        "identification": 31,
        "longitude": 11.51443209027312,
        "latitude": 48.12354538823511
    },
    {
        "identification": 32,
        "longitude": 11.647314944349938,
        "latitude": 48.190141561800544
    }
],
"index":{
    "worth_index":60,
    "distance_index":20,
    "duration_index":20
}
})

headers = {
    'Authorization': 'TOKEN '+YourKey,
    'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

Response:

{
  "trips": [
    {
      "id": "4278d26ca3ed141c572efc57f",
      "orders": [
        {
          "id": "f2bad49ae4ae210e0168877af",
          "start_time": 1646895786.9,
          "end_time": 1646896155.7,
          "arrival_time": 1646896151.7,
          "stop_id": 2,
          "identification": "24",
          "buffer": 4.0,
          "latitude": 48.14550239100494,
          "longitude": 11.593799405893227,
          "worth": 7.0,
          "duration": 364.8,
          "distance": 3222.3
        },
        {
          "id": "49a74734bb5_965316900d100",
          "start_time": 1646896155.7,
          "end_time": 1646896795.2,
          "arrival_time": 1646896727.2,
          "stop_id": 3,
          "identification": "15",
          "buffer": 68.0,
          "latitude": 48.16209419275188,
          "longitude": 11.644915216096903,
          "worth": 6.0,
          "duration": 571.5,
          "distance": 5723.2
        },
        {
          "id": "b6f31487dcaf423a09_00fbd7",
          "start_time": 1646896795.2,
          "end_time": 1646897095.3,
          "arrival_time": 1646897017.3,
          "stop_id": 4,
          "identification": "9",
          "buffer": 78.0,
          "latitude": 48.150356946631526,
          "longitude": 11.646984457515591,
          "worth": 5.0,
          "duration": 222.1,
          "distance": 1833.6
        },
        {
          "id": "c15a0871366718fd1bb954342",
          "start_time": 1646897095.3,
          "end_time": 1646897566.8,
          "arrival_time": 1646897500.8,
          "stop_id": 5,
          "identification": "21",
          "buffer": 66.0,
          "latitude": 48.12629821034275,
          "longitude": 11.636442317794996,
          "worth": 7.0,
          "duration": 405.5,
          "distance": 3559.9
        },
        {
          "id": "e1_e9f2e6e9179bf9e828e880",
          "start_time": 1646897685.8,
          "end_time": 1646897962.0,
          "arrival_time": 1646897941.0,
          "stop_id": 7,
          "identification": "0",
          "buffer": 21.0,
          "latitude": 48.131910290307374,
          "longitude": 11.647477702803526,
          "worth": 10.0,
          "duration": 255.2,
          "distance": 1568.5
        },
        {
          "id": "235e75691_d38903cd91_be47",
          "start_time": 1646897962.0,
          "end_time": 1646898340.3,
          "arrival_time": 1646898256.3,
          "stop_id": 8,
          "identification": "16",
          "buffer": 84.0,
          "latitude": 48.11946950135317,
          "longitude": 11.638010364306039,
          "worth": 20.0,
          "duration": 294.3,
          "distance": 2123.9
        },
        {
          "id": "05197cb5f3_10f4235a460_45",
          "start_time": 1646898340.3,
          "end_time": 1646898608.3999999,
          "arrival_time": 1646898592.3999999,
          "stop_id": 9,
          "identification": "10",
          "buffer": 16.0,
          "latitude": 48.11074705272336,
          "longitude": 11.622830543572896,
          "worth": 18.0,
          "duration": 252.1,
          "distance": 2041.3
        },
        {
          "id": "2382ef5387d90056dbe711419",
          "start_time": 1646899641.8999999,
          "end_time": 1646899835.4999998,
          "arrival_time": 1646899832.4999998,
          "stop_id": 12,
          "identification": "5",
          "buffer": 3.0,
          "latitude": 48.06253548647114,
          "longitude": 11.611525442144814,
          "worth": 22.0,
          "duration": 190.6,
          "distance": 1185.0
        },
        {
          "id": "0f6579b1b4_8bca3c49bfcf95",
          "start_time": 1646899835.4999998,
          "end_time": 1646900389.4999998,
          "arrival_time": 1646900296.4999998,
          "stop_id": 13,
          "identification": "8",
          "buffer": 93.0,
          "latitude": 48.06367948985524,
          "longitude": 11.600951582777027,
          "worth": 16.0,
          "duration": 461.0,
          "distance": 2260.6
        },
        {
          "id": "_e3d0a8c8432ffb54372aa5ef",
          "start_time": 1646895600.0,
          "end_time": 1646895786.9,
          "arrival_time": 1646895760.9,
          "stop_id": 1,
          "identification": "25",
          "buffer": 26.0,
          "latitude": 48.132236223900556,
          "longitude": 11.617438993959446,
          "worth": 19.0,
          "duration": 160.9,
          "distance": 1466.3
        },
        {
          "id": "416e9e0d80b952e880d9a15e4",
          "start_time": 1646897566.8,
          "end_time": 1646897685.8,
          "arrival_time": 1646897623.8,
          "stop_id": 6,
          "identification": "29",
          "buffer": 62.0,
          "latitude": 48.12805731026106,
          "longitude": 11.636663222665115,
          "worth": 5.0,
          "duration": 57.0,
          "distance": 417.7
        },
        {
          "id": "51e62b40e9_4c9c963bb65621",
          "start_time": 1646898608.3999999,
          "end_time": 1646899115.6,
          "arrival_time": 1646899056.6,
          "stop_id": 10,
          "identification": "28",
          "buffer": 59.0,
          "latitude": 48.09718145941923,
          "longitude": 11.610635827894018,
          "worth": 23.0,
          "duration": 448.2,
          "distance": 3795.7
        },
        {
          "id": "4abb8a47b31b7e_fe8861268f",
          "start_time": 1646899115.6,
          "end_time": 1646899641.8999999,
          "arrival_time": 1646899610.8999999,
          "stop_id": 11,
          "identification": "26",
          "buffer": 31.0,
          "latitude": 48.07018403305119,
          "longitude": 11.612210183222194,
          "worth": 20.0,
          "duration": 495.3,
          "distance": 4588.0
        }
      ],
      "driver": {
        "id": "a_3_b532a26862041cc8_0_62",
        "identification": "30",
        "latitude": 48.122906242512784,
        "longitude": 11.61146088159362
      },
      "total_duration": 4789.499999761581,
      "total_distance": 33786.0,
      "start_time": 1646895600.0,
      "end_time": 1646900389.4999998,
      "polyline": "BF467mCqg3lJCGI0BAECY2BDgCBuBD6BBiCDYBHnCDhCeAO8EQuEK4CAGCQCMCUYuFQwCQ8BQiCGQOmBEKGQIYKcSyBSmBWoBkDgFcuBmB2BSYIIuB4BiB6BMcOoBUyBMcEMEMSD-CNeD0CLGKEGEIGMEKuB-CqB6CgBkCfjCpB5CtB9CDJFL9CQjBI9BMTENCjCKPC1BIjBIdC5DSJCxBIjFanEW3BOlBMZMnFsC5D4BPIZKGSGUM2BG8BG8BAcAKAOAQFmBDaR4BR2BNeLYFIDOHMTiBRcpC0DDEHOJKBEDEBEHIBCBCJKDGfmBRQhBqBjByBjCiDHIFMPcLYVyBJcHcHaDUDSDWVIHEHCHGJE_BwBbWPMLILIFCDCDCFCFCFCHCFALCXCxGY1DOpBAhBEpIwBpFkBnEc_EgBxCSNCFCDADCVEhGmBtBSbMDEJEFClCM9DahBKRGLIHGHKDIBKAICMGWUgCEMAIHQHMNMTKPEXETATBRFVNFFHHHLNhBZ1BLTNLPJHARDXBnFiBjBIhBGIW4B6DuB2Ee4DgCuI7EUtBG7BMrBMlBMBBFJRbRdNjBVnCT9CHXJRLVhCtDHPhCpDnB_BLR4H1B2BJCB8DViBHIW4B6DuB2Ee4DgCuI0BuHmBkGKkBSoBmBkBqIsJMMCCOFKDqChB6FzCgBNeFMBMBKAKBUAkBAaCMAeAOCsBAkBC0B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orders": [
        {
          "id": "3e0_b1adea5_93c0643a11123",
          "start_time": 1646895600.0,
          "end_time": 1646895985.6,
          "arrival_time": 1646895886.6,
          "stop_id": 1,
          "identification": "23",
          "buffer": 99.0,
          "latitude": 48.12401031591571,
          "longitude": 11.532929530021773,
          "worth": 22.0,
          "duration": 286.6,
          "distance": 3119.9
        },
        {
          "id": "bba36379e5987fcadaba94fd3",
          "start_time": 1646896481.3,
          "end_time": 1646897013.2,
          "arrival_time": 1646896958.2,
          "stop_id": 3,
          "identification": "1",
          "buffer": 55.0,
          "latitude": 48.15286184869278,
          "longitude": 11.510436233069143,
          "worth": 19.0,
          "duration": 476.9,
          "distance": 3894.7
        },
        {
          "id": "0d68df86e379879599c838b10",
          "start_time": 1646897013.2,
          "end_time": 1646897645.0,
          "arrival_time": 1646897629.0,
          "stop_id": 4,
          "identification": "22",
          "buffer": 16.0,
          "latitude": 48.110416412713704,
          "longitude": 11.514923001126496,
          "worth": 6.0,
          "duration": 615.8,
          "distance": 6255.1
        },
        {
          "id": "dbac888_201ad5c_59_552af3",
          "start_time": 1646897645.0,
          "end_time": 1646898068.4,
          "arrival_time": 1646897981.4,
          "stop_id": 5,
          "identification": "3",
          "buffer": 87.0,
          "latitude": 48.09541502491864,
          "longitude": 11.518329493284998,
          "worth": 12.0,
          "duration": 336.4,
          "distance": 3051.5
        },
        {
          "id": "0da2f0a0d0fa_3_f_a235bf81",
          "start_time": 1646898068.4,
          "end_time": 1646898401.4,
          "arrival_time": 1646898359.4,
          "stop_id": 6,
          "identification": "17",
          "buffer": 42.0,
          "latitude": 48.07902359091615,
          "longitude": 11.523909983639937,
          "worth": 17.0,
          "duration": 291.0,
          "distance": 2633.0
        },
        {
          "id": "0f1b_f16_ab_8ce45b3033367",
          "start_time": 1646898401.4,
          "end_time": 1646898667.4,
          "arrival_time": 1646898589.4,
          "stop_id": 7,
          "identification": "11",
          "buffer": 78.0,
          "latitude": 48.0700130886704,
          "longitude": 11.523889207728498,
          "worth": 23.0,
          "duration": 188.0,
          "distance": 1422.5
        },
        {
          "id": "_89dc878fd561b1d4_2c21_a9",
          "start_time": 1646898667.4,
          "end_time": 1646899344.8000002,
          "arrival_time": 1646899248.8000002,
          "stop_id": 8,
          "identification": "12",
          "buffer": 96.0,
          "latitude": 48.10302441962848,
          "longitude": 11.554896160930987,
          "worth": 13.0,
          "duration": 581.4,
          "distance": 5073.5
        },
        {
          "id": "338eeb42f73eb5ed9_691_70a",
          "start_time": 1646899344.8000002,
          "end_time": 1646900181.6000001,
          "arrival_time": 1646900114.6000001,
          "stop_id": 9,
          "identification": "4",
          "buffer": 67.0,
          "latitude": 48.0620789968801,
          "longitude": 11.556557878071771,
          "worth": 17.0,
          "duration": 769.8,
          "distance": 6530.5
        },
        {
          "id": "52eef_a7d62767640df3fbf0a",
          "start_time": 1646895985.6,
          "end_time": 1646896481.3,
          "arrival_time": 1646896385.3,
          "stop_id": 2,
          "identification": "27",
          "buffer": 96.0,
          "latitude": 48.1288092829977,
          "longitude": 11.492435977859387,
          "worth": 22.0,
          "duration": 399.7,
          "distance": 4399.6
        }
      ],
      "driver": {
        "id": "835df9cfae099b5b2b91ebc33",
        "identification": "31",
        "latitude": 48.12354538823511,
        "longitude": 11.51443209027312
      },
      "total_duration": 4581.600000143051,
      "total_distance": 36380.3,
      "start_time": 1646895600.0,
      "end_time": 1646900181.6000001,
      "polyline": "BFg_omCmo3lJgGlB-DVqGhBsDToDP-BLmBJcLKDOJOJSREDIPIPCNCRDjBrB9BtBhCdNTPNPTlBXvBRjBFRAFCR0BFGOSiBmB6BWoBQcsB-BUaoCmDoC4DsC6DOYKkBwC8DgBwBaoBiBqBiBqB0B2BcYeceYqBgBwC8ByC8B0BmBkCuBiDgCkD8BwFkDyBU2CqBoD0BqDyB2Ba6D6BMGcOWP6E1DUJUJYFWBSBUAQCOCWGSIQG0CyBWMECgCmBaOcIUEUCQAMAYDWDQHOHmF5D-BpBkBb4BrBeZSRgBfgBjBmBtBoBzBuBpC0BlDQjBO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bBDLZJTFLPfFNTrBNbJVZ1BRnBlBzCDHXzBNdFLb_BFLFLHNHTd_BjBpCZ5BflCdhCTnBVxBjBrCJTHRDLHPhBlCPfVvBRnBTnBfjCfhCLbNZPjBVrBlBtCDLXxBHNPhBBBNdJTjBpCDJhBjCHNrCzE7B3D_DhIvC_EXtBdzBLVRdrE9H_CtF_CpFUDWD0BHcDIBQBqBByFLkFHkBF-CbgBFkBA2CGyBGiBAwBJkBJsBFuCBgBFsCT0BP-BhBqBjB6BtBcVeVUPWRURWZWXWXOJaRyBfaPKFoBZsBb2C1BUNQLOJMLSNONKLKLINGLGLE3CAJUFWH4E_CKJCFAdDLPJxC1B1CzBAA"
    },
    {
      "id": "9c__391b2c7365fd6b_fd_ed6",
      "orders": [
        {
          "id": "0ceaf06689f2c3bec7f36db_d",
          "start_time": 1646895600.0,
          "end_time": 1646896416.0,
          "arrival_time": 1646896334.0,
          "stop_id": 1,
          "identification": "19",
          "buffer": 82.0,
          "latitude": 48.198835916974964,
          "longitude": 11.609089347327203,
          "worth": 14.0,
          "duration": 734.0,
          "distance": 6900.0
        },
        {
          "id": "393649ca37b9ba60396277b6a",
          "start_time": 1646896416.0,
          "end_time": 1646896740.3,
          "arrival_time": 1646896729.3,
          "stop_id": 2,
          "identification": "2",
          "buffer": 11.0,
          "latitude": 48.205859621907955,
          "longitude": 11.585734425447335,
          "worth": 21.0,
          "duration": 313.3,
          "distance": 2814.2
        },
        {
          "id": "86_47e9b498db50772aefbe18",
          "start_time": 1646896740.3,
          "end_time": 1646896986.3999999,
          "arrival_time": 1646896908.3999999,
          "stop_id": 3,
          "identification": "18",
          "buffer": 78.0,
          "latitude": 48.19408096498202,
          "longitude": 11.58261131021289,
          "worth": 16.0,
          "duration": 168.1,
          "distance": 1459.2
        },
        {
          "id": "822b4aa04f9a8_c4f_a7bd7c_",
          "start_time": 1646896986.3999999,
          "end_time": 1646897358.6999998,
          "arrival_time": 1646897293.6999998,
          "stop_id": 4,
          "identification": "13",
          "buffer": 65.0,
          "latitude": 48.18993574402319,
          "longitude": 11.56016217640396,
          "worth": 5.0,
          "duration": 307.3,
          "distance": 2925.6
        },
        {
          "id": "a94e1a068b_9fb_a0ca3b2e81",
          "start_time": 1646897358.6999998,
          "end_time": 1646897768.1,
          "arrival_time": 1646897669.1,
          "stop_id": 5,
          "identification": "20",
          "buffer": 99.0,
          "latitude": 48.19374952241109,
          "longitude": 11.543886907718498,
          "worth": 16.0,
          "duration": 310.4,
          "distance": 2533.0
        },
        {
          "id": "80711_eff1a6e125d6a__634c",
          "start_time": 1646897768.1,
          "end_time": 1646898209.5,
          "arrival_time": 1646898144.5,
          "stop_id": 6,
          "identification": "6",
          "buffer": 65.0,
          "latitude": 48.1939665196079,
          "longitude": 11.52915436007679,
          "worth": 11.0,
          "duration": 376.4,
          "distance": 2784.3
        },
        {
          "id": "0fde6d4_f3cd4ed421de63c28",
          "start_time": 1646898209.5,
          "end_time": 1646898895.1,
          "arrival_time": 1646898828.1,
          "stop_id": 7,
          "identification": "7",
          "buffer": 67.0,
          "latitude": 48.16971049703524,
          "longitude": 11.545259805123145,
          "worth": 14.0,
          "duration": 618.6,
          "distance": 5298.5
        },
        {
          "id": "da75d8e2b3179275f4f3cf_23",
          "start_time": 1646898895.1,
          "end_time": 1646899383.8,
          "arrival_time": 1646899350.8,
          "stop_id": 8,
          "identification": "14",
          "buffer": 33.0,
          "latitude": 48.14514208172484,
          "longitude": 11.55919609996088,
          "worth": 13.0,
          "duration": 455.7,
          "distance": 4202.2
        }
      ],
      "driver": {
        "id": "8a7de05d1868d630b2d33bbc3",
        "identification": "32",
        "latitude": 48.190141561800544,
        "longitude": 11.647314944349938
      },
      "total_duration": 3783.7999999523163,
      "total_distance": 28917.0,
      "start_time": 1646895600.0,
      "end_time": 1646899383.8,
      "polyline": "BFy7inCsjkmJKAsBDqBBsBBsBDoBBsBB2DHmBAcUoBgC-BmDqBiCGSOBgCH2HXuCHSBFRJfT7BHXHVnBxDFN5D_KHVBHHXDL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BpBCBgC7BefwDvDiBfQRgBdkBDKBkBBAmBasLGkCekCyCoDQWGKQgBEqBlBiBNWCMEaIyBAW2BCAODuBAIDYBcDaHIwHakCKYAKAGFEDMPWbORMLYfWbqBEqEQmCIoCOkCQuDkBoBOnBNtDjBjCPnCNlCHpEPpBDVcXgBLMNSVcLQDEFGJAXAjCJvHZLPP7CAFBZBPAVHxBDZBLBDDFFFJHNFdJtDbtBNVJzBfbRpBbzBb7BbvBT1BTnCbRHRHPHFDXLgF3DUNwBpBCBgC7BefwDvDiBfQRgBdsCrCWVmD1CwBlB4BlBKFgFhD6BjBqCtBmEzCwDjCsBZSJqEzCiF9CYN0CzB8DpCoEzCmBV4C9ByChCSPOR0BtBKJSPKHCBEBCBKHCBSNmDtC0FxEwD5CyChCmDzCwGnF4FzEGFcXgBZoC7B4BpBwBjBUNaRaRmDtCMJiC3BsFrE8CvCGDqBjBqD5CiC1B6BvBEDgBZMLQJKRUhBMXITIPGRGRW9B4B5GCBepDSjCBXBJDZHZrBpEFbFRDJTblC7DFJHPgBLWFKBGBmG1B"
    }
  ],
  "index": {
    "distance_index": 20.0,
    "duration_index": 20.0,
    "worth_index": 60.0
  },
  "constraints": {
    "max_orders_per_driver": 15
  },
  "unassigned_orders": []
}

As you can see in the results below, the orders with the higher worth have been prioritized, while distance and duration factors had less of an impact. You can change the index values in the slide bar and refresh the results to quickly assess the impact.

result1

Till now, all our requests have assumed that we would like to assign all 30 orders to the 3 drivers, but more often than not, we want to assign a maximum number of orders per driver and reshuffle the orders as they come in and as they are completed. In addition, it might be more efficient for you to identify smaller and more valuable order combinations. The capacity section covers this. It assigns each driver a set combination of orders, driven by the index value. Let’s assume that we want to assign 3 orders per driver and all index values are equally important to us. It is important to note that buffer values will also be included in the division process. Orders with comparably lower buffer values and high priority values will be prioritized.

import requests
import json

url = "https://synertics.io/dispatching/trips/"

payload = json.dumps({
    "orders": [
    {
        "identification": 0,
        "longitude": 11.647477702803526,
        "latitude": 48.131910290307374,
        "buffer": 21.0,
        "worth": 10.0
    },
    {
        "identification": 1,
        "longitude": 11.510436233069143,
        "latitude": 48.15286184869278,
        "buffer": 55.0,
        "worth": 19.0
    },
    {
        "identification": 2,
        "longitude": 11.585734425447335,
        "latitude": 48.205859621907955,
        "buffer": 11.0,
        "worth": 21.0
    },
    {
        "identification": 3,
        "longitude": 11.518329493284998,
        "latitude": 48.09541502491864,
        "buffer": 87.0,
        "worth": 12.0
    },
    {
        "identification": 4,
        "longitude": 11.556557878071771,
        "latitude": 48.0620789968801,
        "buffer": 67.0,
        "worth": 17.0
    },
    {
        "identification": 5,
        "longitude": 11.611525442144814,
        "latitude": 48.06253548647114,
        "buffer": 3.0,
        "worth": 22.0
    },
    {
        "identification": 6,
        "longitude": 11.52915436007679,
        "latitude": 48.1939665196079,
        "buffer": 65.0,
        "worth": 11.0
    },
    {
        "identification": 7,
        "longitude": 11.545259805123145,
        "latitude": 48.16971049703524,
        "buffer": 67.0,
        "worth": 14.0
    },
    {
        "identification": 8,
        "longitude": 11.600951582777027,
        "latitude": 48.06367948985524,
        "buffer": 93.0,
        "worth": 16.0
    },
    {
        "identification": 9,
        "longitude": 11.646984457515591,
        "latitude": 48.150356946631526,
        "buffer": 78.0,
        "worth": 5.0
    },
    {
        "identification": 10,
        "longitude": 11.622830543572896,
        "latitude": 48.11074705272336,
        "buffer": 16.0,
        "worth": 18.0
    },
    {
        "identification": 11,
        "longitude": 11.523889207728498,
        "latitude": 48.0700130886704,
        "buffer": 78.0,
        "worth": 23.0
    },
    {
        "identification": 12,
        "longitude": 11.554896160930987,
        "latitude": 48.10302441962848,
        "buffer": 96.0,
        "worth": 13.0
    },
    {
        "identification": 13,
        "longitude": 11.56016217640396,
        "latitude": 48.18993574402319,
        "buffer": 65.0,
        "worth": 5.0
    },
    {
        "identification": 14,
        "longitude": 11.55919609996088,
        "latitude": 48.14514208172484,
        "buffer": 33.0,
        "worth": 13.0
    },
    {
        "identification": 15,
        "longitude": 11.644915216096903,
        "latitude": 48.16209419275188,
        "buffer": 68.0,
        "worth": 6.0
    },
    {
        "identification": 16,
        "longitude": 11.638010364306039,
        "latitude": 48.11946950135317,
        "buffer": 84.0,
        "worth": 20.0
    },
    {
        "identification": 17,
        "longitude": 11.523909983639937,
        "latitude": 48.07902359091615,
        "buffer": 42.0,
        "worth": 17.0
    },
    {
        "identification": 18,
        "longitude": 11.58261131021289,
        "latitude": 48.19408096498202,
        "buffer": 78.0,
        "worth": 16.0
    },
    {
        "identification": 19,
        "longitude": 11.609089347327203,
        "latitude": 48.198835916974964,
        "buffer": 82.0,
        "worth": 14.0
    },
    {
        "identification": 20,
        "longitude": 11.543886907718498,
        "latitude": 48.19374952241109,
        "buffer": 99.0,
        "worth": 16.0
    },
    {
        "identification": 21,
        "longitude": 11.636442317794996,
        "latitude": 48.12629821034275,
        "buffer": 66.0,
        "worth": 7.0
    },
    {
        "identification": 22,
        "longitude": 11.514923001126496,
        "latitude": 48.110416412713704,
        "buffer": 16.0,
        "worth": 6.0
    },
    {
        "identification": 23,
        "longitude": 11.532929530021773,
        "latitude": 48.12401031591571,
        "buffer": 99.0,
        "worth": 22.0
    },
    {
        "identification": 24,
        "longitude": 11.593799405893227,
        "latitude": 48.14550239100494,
        "buffer": 4.0,
        "worth": 7.0
    },
    {
        "identification": 25,
        "longitude": 11.617438993959446,
        "latitude": 48.132236223900556,
        "buffer": 26.0,
        "worth": 19.0
    },
    {
        "identification": 26,
        "longitude": 11.612210183222194,
        "latitude": 48.07018403305119,
        "buffer": 31.0,
        "worth": 20.0
    },
    {
        "identification": 27,
        "longitude": 11.492435977859387,
        "latitude": 48.1288092829977,
        "buffer": 96.0,
        "worth": 22.0
    },
    {
        "identification": 28,
        "longitude": 11.610635827894018,
        "latitude": 48.09718145941923,
        "buffer": 59.0,
        "worth": 23.0
    },
    {
        "identification": 29,
        "longitude": 11.636663222665115,
        "latitude": 48.12805731026106,
        "buffer": 62.0,
        "worth": 5.0
    }
],
   "drivers":[
    {
        "identification": 30,
        "longitude": 11.61146088159362,
        "latitude": 48.122906242512784
    },
    {
        "identification": 31,
        "longitude": 11.51443209027312,
        "latitude": 48.12354538823511
    },
    {
        "identification": 32,
        "longitude": 11.647314944349938,
        "latitude": 48.190141561800544
    }
],
"index":{
    "worth_index":33.33,
    "distance_index":33.33,
    "duration_index":33.33
},
"constraints":{
   "max_orders_per_driver":3
}
})

headers = {
    'Authorization': 'TOKEN '+YourKey,
    'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

In the map view of your account, you can see that 3 orders were assigned to each of the 3 drivers. All remaining orders were left out for the time being.

result2

Conclusion

The API solution lets you individually structure and automate your dispatching and route planning activities. It is easy to use, adaptable and takes care of all algorithm, scalability and mapping infrastructure topics, which are risky, timely and above all very costly to develop and deploy. We hope that you enjoyed the tutorial and would love to get your feedback through the following questionnaire, link. Do feel free to reach out to us if you have any questions, wishes or recommendations at info@synertics.io. Thank you!