{"id":3699,"date":"2026-03-16T15:08:30","date_gmt":"2026-03-16T15:08:30","guid":{"rendered":"https:\/\/developers.maplink.global\/?p=3699"},"modified":"2026-03-16T15:08:30","modified_gmt":"2026-03-16T15:08:30","slug":"example-4-loads-separated-by-vehicle-type","status":"publish","type":"post","link":"https:\/\/developers.maplink.global\/en\/example-4-loads-separated-by-vehicle-type\/","title":{"rendered":"Example 4 \u2013 Loads Separated by Vehicle Type"},"content":{"rendered":"\n<p>In this example, we have a request to solve a logistics problem for a company with specialized vehicles for different types of cargo: frozen, chilled, and dry. There are 3 vehicles \u2013 one refrigerated (can carry frozen and chilled), one dry, and one hybrid (can carry all types). There are 15 delivery operations (stoppoints), with products assigned to specific packagings, ensuring that each vehicle carries only compatible loads.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Problem Description<\/h3>\n\n\n\n<p>The deliveries involve products such as fish (frozen), milk (chilled), and soybeans (dry). The vehicles are configured with compartments that restrict the allowed packagings, simulating real-world scenarios such as perishable food logistics, where temperature and cargo type are critical. There are no restricted time windows, but the planning optimizes distances and capacities.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" width=\"44\" height=\"54\" src=\"https:\/\/lh7-us.googleusercontent.com\/Ecw0HpmFTkHS9YTTueHZ-UIHQ9m__1DAF1ZSvLm4oLZO8nQuGf1p3rGuO_scs5bGxdxLT6Ey1xLMV60FdLG4a7ZdYdNw8Zvdd7vsAibCgNFkzFw0vZrEwgAT748h8N6Q5yRMR9rso8qhNQg6BlnMI5M\"><br><strong>15<\/strong><br>DELIVERY OPERATIONS<\/td><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" width=\"54\" height=\"56\" src=\"https:\/\/lh7-us.googleusercontent.com\/tlHJJDTrMMGdNpgy4b7NViQxNbZGLO0J4ExNzTAi650ih_Vv1Gdx8iKDsCAeh1V5uww-0XYbjbNwOJDy-gb4e9l2P_O2W_V-GAKruQivUcDcgocIChD_YaRbzk4eEIp4G60rqXlq5sZh1vveL2ISiuk\"><br><strong>1<\/strong><br>DEPOT<\/td><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" width=\"67\" height=\"46\" src=\"https:\/\/lh7-us.googleusercontent.com\/rFu0fpGmrr1abPVUyk3F2o7AHgxNXqdcACNvuKFSaRakSJeovXd2wYjfHj2LzlSekyyU1yomRalhVvLJwvgBlc3rtZ-dg_BFCyz1ngD8QX9bqfW-l3uadBY0A0idCEL5L1QoUKKQb1djDJp0pTSRim4\"><br>3<br>SPECIALIZED VEHICLES (REFRIGERATED, DRY, HYBRID)<\/td><td class=\"has-text-align-center\" data-align=\"center\"><img loading=\"lazy\" decoding=\"async\" width=\"55\" height=\"48\" src=\"https:\/\/lh7-us.googleusercontent.com\/txPmYOmUaiZr490Bf8WWSFaBywUKQBvfh2Iai34POBsJf81v2a9ICyP0hngHGM7Y2EE7rjUYcAWGMEjRnEoXWV2fCfRa2gC0gfvUrFdrXNGuPvxXTaXoS8s4gAZi1RYqu9riZjgxIV8NELXp-zwQzkc\"><br><strong>15<\/strong><br>PRODUCT TYPES (FROZEN, CHILLED, DRY)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Description of the Logistics Problem<\/h3>\n\n\n\n<p>The stoppoints are geographically distributed, and the optimization assigns compatible loads to each vehicle: the refrigerated vehicle carries milk and possibly fish, the dry vehicle carries soybeans, and the hybrid vehicle handles the remaining loads. This prevents contamination or temperature violations, which are common concerns in Brazilian supply chains.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Parameters Used<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>\"optimizationProfile\":<\/code> &#8220;BRAZIL46&#8221; \u2013 Perfil otimizado para rotas brasileiras.<\/li>\n\n\n\n<li><code>\"tripsProfile\"<\/code>: &#8220;MAPLINKBR&#8221; \u2013 Perfil de mapas para Brasil.<\/li>\n\n\n\n<li><code>\"startDate\"<\/code>: 1624608000000 \u2013 In\u00edcio em 28\/06\/2021 00:00 GMT.<\/li>\n\n\n\n<li><code>\"legislationProfiles\" <\/code>\u2013 Perfil padr\u00e3o sem restri\u00e7\u00f5es espec\u00edficas de tempo.<\/li>\n\n\n\n<li><code>\"logisticConstraints\"<\/code> \u2013 Tempo fixo de carregamento\/descarregamento de 0s (simplificado).<\/li>\n\n\n\n<li><code>\"products\"<\/code> \u2013 Definem packagings: PEIXE (CONGELADOS), LEITE (RESFRIADOS), SOJA (SECOS).<\/li>\n\n\n\n<li><code>\"sites\"<\/code> \u2013 Localiza\u00e7\u00f5es dos stoppoints com coordenadas.<\/li>\n\n\n\n<li><code>\"depots\" <\/code>\u2013 Dep\u00f3sito central.<\/li>\n\n\n\n<li><code>\"vehicleTypes\"<\/code> \u2013 Tipos com compartimentos: REFRIGERADO (permite CONGELADOS\/RESFRIADOS), SECO (apenas SECOS), HIBRIDO (todos).<\/li>\n\n\n\n<li><code>\"vehicles\"<\/code> \u2013 Tr\u00eas ve\u00edculos atribu\u00eddos a tipos espec\u00edficos, dispon\u00edveis por um dia.<\/li>\n\n\n\n<li><code>\"operations\"<\/code> \u2013 15 entregas com produtos e quantidades espec\u00edficas.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Complete Request<\/h3>\n\n\n\n<p>The complete request, based on the description, can be seen below (reconstructed from the provided snippets):<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{\n    \"optimizationProfile\": \"BRAZIL46\",\n    \"tripsProfile\": \"MAPLINKBR\",\n    \"startDate\": 1624608000000,\n    \"legislationProfiles\": [\n        {\n            \"name\": \"DEFAULT\"\n        }\n    ],\n    \"logisticConstraints\": [\n        {\n            \"name\": \"TEST\",\n            \"siteUnloadingFixedTime\": 0,\n            \"unloadingPositionInRoute\": \"INDIFFERENT\"\n        }\n    ],\n    \"products\": [\n        {\n            \"name\": \"PEIXE\",\n            \"packagings\": [\n                \"CONGELADOS\"\n            ]\n        },\n        {\n            \"name\": \"LEITE\",\n            \"packagings\": [\n                \"RESFRIADOS\"\n            ]\n        },\n        {\n            \"name\": \"SOJA\",\n            \"packagings\": [\n                \"SECOS\"\n            ]\n        }\n    ],\n    \"sites\": [\n        {\n            \"name\": \"STOPPOINT_1\",\n            \"coordinates\": {\n                \"latitude\": -23.524322,\n                \"longitude\": -46.706273\n            },\n            \"logisticConstraints\": \"TEST\"\n        },\n        {\n            \"name\": \"STOPPOINT_2\",\n            \"coordinates\": {\n                \"latitude\": -23.623525,\n                \"longitude\": -46.703297\n            },\n            \"logisticConstraints\": \"TEST\"\n        },\n        {\n            \"name\": \"STOPPOINT_3\",\n            \"coordinates\": {\n                \"latitude\": -23.588551,\n                \"longitude\": -46.646401\n            },\n            \"logisticConstraints\": \"TEST\"\n        },\n        {\n            \"name\": \"STOPPOINT_4\",\n            \"coordinates\": {\n                \"latitude\": -23.504494,\n                \"longitude\": -46.857385\n            },\n            \"logisticConstraints\": \"TEST\"\n        },\n        {\n            \"name\": \"STOPPOINT_5\",\n            \"coordinates\": {\n                \"latitude\": -29.823819,\n                \"longitude\": -51.14773\n            },\n            \"logisticConstraints\": \"TEST\"\n        },\n        {\n            \"name\": \"STOPPOINT_6\",\n            \"coordinates\": {\n                \"latitude\": -25.556829,\n                \"longitude\": -49.348827\n            },\n            \"logisticConstraints\": \"TEST\"\n        },\n        {\n            \"name\": \"STOPPOINT_7\",\n            \"coordinates\": {\n                \"latitude\": -29.827506,\n                \"longitude\": -51.172703\n            },\n            \"logisticConstraints\": \"TEST\"\n        },\n        {\n            \"name\": \"STOPPOINT_8\",\n            \"coordinates\": {\n                \"latitude\": -29.827506,\n                \"longitude\": -51.172703\n            },\n            \"logisticConstraints\": \"TEST\"\n        },\n        {\n            \"name\": \"STOPPOINT_9\",\n            \"coordinates\": {\n                \"latitude\": -25.242227,\n                \"longitude\": -53.981779\n            },\n            \"logisticConstraints\": \"TEST\"\n        },\n        {\n            \"name\": \"STOPPOINT_10\",\n            \"coordinates\": {\n                \"latitude\": -29.638353,\n                \"longitude\": -51.004301\n            },\n            \"logisticConstraints\": \"TEST\"\n        }\n    ],\n    \"depots\": [\n        {\n            \"name\": \"DEPOT\",\n            \"coordinates\": {\n                \"latitude\": -23.504494,\n                \"longitude\": -46.857385\n            },\n            \"logisticConstraints\": \"TEST\"\n        }\n    ],\n    \"vehicleTypes\": [\n        {\n            \"name\": \"REFRIGERADO\",\n            \"maxVolume\": 100,\n            \"maxWeight\": 100,\n            \"size\": 10,\n            \"compartmentsAccessMode\": \"REAR_ACCESS\",\n            \"compartmentConfigurations\": [\n                {\n                    \"name\": \"COMPARTIMENTO_REFRIGERADO\",\n                    \"compartments\": [\n                        {\n                            \"name\": \"REFRIGERADO\",\n                            \"type\": \"FIXED\",\n                            \"maximumCapacity\": 1000,\n                            \"loadingRule\": \"NONE\",\n                            \"allowedPackagings\": [\n                                \"CONGELADOS\",\n                                \"RESFRIADOS\"\n                            ]\n                        }\n                    ]\n                }\n            ]\n        },\n        {\n            \"name\": \"SECO\",\n            \"maxVolume\": 100,\n            \"maxWeight\": 100,\n            \"size\": 10,\n            \"compartmentsAccessMode\": \"REAR_ACCESS\",\n            \"compartmentConfigurations\": [\n                {\n                    \"name\": \"COMPARTIMENTO_SECO\",\n                    \"compartments\": [\n                        {\n                            \"name\": \"SECO\",\n                            \"type\": \"FIXED\",\n                            \"maximumCapacity\": 1000,\n                            \"loadingRule\": \"NONE\",\n                            \"allowedPackagings\": [\n                                \"SECOS\"\n                            ]\n                        }\n                    ]\n                }\n            ]\n        },\n        {\n            \"name\": \"HIBRIDO\",\n            \"maxVolume\": 100,\n            \"maxWeight\": 100,\n            \"size\": 10,\n            \"compartmentsAccessMode\": \"REAR_ACCESS\",\n            \"compartmentConfigurations\": [\n                {\n                    \"name\": \"COMPARTIMENTO_HIBRIDO\",\n                    \"compartments\": [\n                        {\n                            \"name\": \"HIBRIDO\",\n                            \"type\": \"FIXED\",\n                            \"maximumCapacity\": 1000,\n                            \"loadingRule\": \"NONE\",\n                            \"allowedPackagings\": [\n                                \"CONGELADOS\",\n                                \"RESFRIADOS\",\n                                \"SECOS\"\n                            ]\n                        }\n                    ]\n                }\n            ]\n        }\n    ],\n    \"vehicles\": [\n        {\n            \"name\": \"VEHICLE_1\",\n            \"vehicleType\": \"REFRIGERADO\",\n            \"legislationProfile\": \"DEFAULT\",\n            \"availablePeriods\": [\n                {\n                    \"departureSite\": \"DEPOT\",\n                    \"arrivalSite\": \"DEPOT\",\n                    \"timeWindow\": {\n                        \"start\": 1624608000000,\n                        \"end\": 1624730400000\n                    },\n                    \"maxRoutesNumber\": 1\n                }\n            ]\n        },\n        {\n            \"name\": \"VEHICLE_2\",\n            \"vehicleType\": \"SECO\",\n            \"legislationProfile\": \"DEFAULT\",\n            \"availablePeriods\": [\n                {\n                    \"departureSite\": \"DEPOT\",\n                    \"arrivalSite\": \"DEPOT\",\n                    \"timeWindow\": {\n                        \"start\": 1624608000000,\n                        \"end\": 1624730400000\n                    },\n                    \"maxRoutesNumber\": 1\n                }\n            ]\n        },\n        {\n            \"name\": \"VEHICLE_3\",\n            \"vehicleType\": \"HIBRIDO\",\n            \"legislationProfile\": \"DEFAULT\",\n            \"availablePeriods\": [\n                {\n                    \"departureSite\": \"DEPOT\",\n                    \"arrivalSite\": \"DEPOT\",\n                    \"timeWindow\": {\n                        \"start\": 1624608000000,\n                        \"end\": 1624730400000\n                    },\n                    \"maxRoutesNumber\": 1\n                }\n            ]\n        }\n    ],\n    \"operations\": [\n        {\n            \"id\": \"STOPPOINT_1\",\n            \"priority\": 0,\n            \"volume\": 10,\n            \"weight\": 5,\n            \"product\": \"PEIXE\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_1\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_2\",\n            \"priority\": 0,\n            \"volume\": 10,\n            \"weight\": 5,\n            \"product\": \"PEIXE\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_2\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_3\",\n            \"priority\": 0,\n            \"volume\": 10,\n            \"weight\": 5,\n            \"product\": \"PEIXE\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_3\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_4\",\n            \"priority\": 0,\n            \"volume\": 0,\n            \"weight\": 0,\n            \"product\": \"PEIXE\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_4\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_5\",\n            \"priority\": 0,\n            \"volume\": 0,\n            \"weight\": 0,\n            \"product\": \"PEIXE\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_5\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_6\",\n            \"priority\": 0,\n            \"volume\": 0,\n            \"weight\": 0,\n            \"product\": \"LEITE\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_6\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_7\",\n            \"priority\": 0,\n            \"volume\": 0,\n            \"weight\": 0,\n            \"product\": \"LEITE\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_7\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_8\",\n            \"priority\": 0,\n            \"volume\": 0,\n            \"weight\": 0,\n            \"product\": \"LEITE\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_8\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_9\",\n            \"priority\": 0,\n            \"volume\": 0,\n            \"weight\": 0,\n            \"product\": \"LEITE\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_9\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_10\",\n            \"priority\": 0,\n            \"volume\": 0,\n            \"weight\": 0,\n            \"product\": \"LEITE\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_10\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_11\",\n            \"priority\": 0,\n            \"volume\": 100,\n            \"weight\": 100,\n            \"product\": \"SOJA\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_1\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_12\",\n            \"priority\": 0,\n            \"volume\": 0,\n            \"weight\": 0,\n            \"product\": \"SOJA\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_2\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_13\",\n            \"priority\": 0,\n            \"volume\": 0,\n            \"weight\": 0,\n            \"product\": \"SOJA\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_3\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_14\",\n            \"priority\": 0,\n            \"volume\": 0,\n            \"weight\": 0,\n            \"product\": \"SOJA\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_4\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_15\",\n            \"priority\": 0,\n            \"volume\": 0,\n            \"weight\": 0,\n            \"product\": \"SOJA\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_5\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        }\n    ]\n}<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Logistics Problem Solution<\/h3>\n\n\n\n<p>The API response will return a JSON format with the best sequencing of operations for each vehicle, respecting packaging and compartment constraints. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"619\" src=\"https:\/\/developers.maplink.global\/wp-content\/uploads\/2026\/03\/Captura-de-tela-2026-03-02-094942-1024x619.png\" alt=\"\" class=\"wp-image-3681\" srcset=\"https:\/\/developers.maplink.global\/wp-content\/uploads\/2026\/03\/Captura-de-tela-2026-03-02-094942-1024x619.png 1024w, https:\/\/developers.maplink.global\/wp-content\/uploads\/2026\/03\/Captura-de-tela-2026-03-02-094942-300x181.png 300w, https:\/\/developers.maplink.global\/wp-content\/uploads\/2026\/03\/Captura-de-tela-2026-03-02-094942-768x464.png 768w, https:\/\/developers.maplink.global\/wp-content\/uploads\/2026\/03\/Captura-de-tela-2026-03-02-094942.png 1055w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Global Indicators<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Indicator<\/th><th>Result<\/th><\/tr><\/thead><tbody><tr><td>Total daytime working time<\/td><td>37:40:42<\/td><\/tr><tr><td>Total nighttime working time<\/td><td>17:58:00<\/td><\/tr><tr><td>Total working time<\/td><td>55:38:42<\/td><\/tr><tr><td>Number of time windows<\/td><td>3<\/td><\/tr><tr><td>Total driving time<\/td><td>55:38:42<\/td><\/tr><tr><td>Total time<\/td><td>55:38:42<\/td><\/tr><tr><td>Total distance<\/td><td>4318.63 km<\/td><\/tr><tr><td>Average volume occupancy rate<\/td><td>43.34%<\/td><\/tr><tr><td>Average weight occupancy rate<\/td><td>38.34%<\/td><\/tr><tr><td>Number of routes<\/td><td>3<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Route Activity Indicators<\/h3>\n\n\n\n<h2 class=\"wp-block-heading\">Route Activity Indicators<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Vehicle<\/th><th>Activity<\/th><th>Origin<\/th><th>Destination<\/th><th>Distance<\/th><th>Nominal Duration<\/th><th>Time Window Start<\/th><th>Time Window End<\/th><\/tr><\/thead><tbody><tr><td>VEHICLE_3<\/td><td>ROUTE_START<\/td><td>DEPOT<\/td><td>&#8211;<\/td><td>&#8211;<\/td><td>&#8211;<\/td><td>06\/28\/2021 00:00<\/td><td>06\/28\/2021 00:00<\/td><\/tr><tr><td>VEHICLE_3<\/td><td>LOADING<\/td><td>DEPOT<\/td><td>&#8211;<\/td><td>&#8211;<\/td><td>&#8211;<\/td><td>06\/28\/2021 00:00<\/td><td>06\/28\/2021 00:00<\/td><\/tr><tr><td>VEHICLE_3<\/td><td>DRIVING<\/td><td>STOPPOINT_4<\/td><td>STOPPOINT_1<\/td><td>17.91 km<\/td><td>00:19:54<\/td><td>06\/28\/2021 00:00<\/td><td>06\/28\/2021 00:19:54<\/td><\/tr><tr><td>VEHICLE_3<\/td><td>DRIVING<\/td><td>STOPPOINT_1<\/td><td>STOPPOINT_3<\/td><td>12.73 km<\/td><td>00:21:28<\/td><td>06\/28\/2021 00:19:54<\/td><td>06\/28\/2021 00:41:22<\/td><\/tr><tr><td>VEHICLE_3<\/td><td>DRIVING<\/td><td>STOPPOINT_3<\/td><td>STOPPOINT_2<\/td><td>10.24 km<\/td><td>00:16:55<\/td><td>06\/28\/2021 00:41:22<\/td><td>06\/28\/2021 00:58:17<\/td><\/tr><tr><td>VEHICLE_3<\/td><td>DRIVING<\/td><td>STOPPOINT_2<\/td><td>STOPPOINT_10<\/td><td>1119.03 km<\/td><td>14:14:42<\/td><td>06\/28\/2021 00:58:17<\/td><td>06\/28\/2021 15:12:59<\/td><\/tr><tr><td>VEHICLE_3<\/td><td>DRIVING<\/td><td>STOPPOINT_10<\/td><td>STOPPOINT_7<\/td><td>40.14 km<\/td><td>00:39:49<\/td><td>06\/28\/2021 15:12:59<\/td><td>06\/28\/2021 15:52:48<\/td><\/tr><tr><td>VEHICLE_3<\/td><td>DRIVING<\/td><td>STOPPOINT_8<\/td><td>STOPPOINT_5<\/td><td>4.11 km<\/td><td>00:06:13<\/td><td>06\/28\/2021 15:52:48<\/td><td>06\/28\/2021 15:59:01<\/td><\/tr><tr><td>VEHICLE_3<\/td><td>DRIVING<\/td><td>STOPPOINT_5<\/td><td>DEPOT<\/td><td>1120.29 km<\/td><td>13:36:00<\/td><td>06\/28\/2021 15:59:01<\/td><td>06\/29\/2021 05:35:01<\/td><\/tr><tr><td>VEHICLE_3<\/td><td>ROUTE_END<\/td><td>DEPOT<\/td><td>&#8211;<\/td><td>&#8211;<\/td><td>&#8211;<\/td><td>06\/29\/2021 05:35:01<\/td><td>06\/29\/2021 05:35:01<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Complete Response<\/h3>\n\n\n\n<p>The complete response can be found below:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{\n    \"optimizationProfile\": \"BRAZIL46\",\n    \"tripsProfile\": \"MAPLINKBR\",\n    \"startDate\": 1624608000000,\n    \"legislationProfiles\": [\n        {\n            \"name\": \"DEFAULT\"\n        }\n    ],\n    \"logisticConstraints\": [\n        {\n            \"name\": \"TEST\",\n            \"siteUnloadingFixedTime\": 0,\n            \"unloadingPositionInRoute\": \"INDIFFERENT\"\n        }\n    ],\n    \"products\": [\n        {\n            \"name\": \"PEIXE\",\n            \"packagings\": [\n                \"CONGELADOS\"\n            ]\n        },\n        {\n            \"name\": \"LEITE\",\n            \"packagings\": [\n                \"RESFRIADOS\"\n            ]\n        },\n        {\n            \"name\": \"SOJA\",\n            \"packagings\": [\n                \"SECOS\"\n            ]\n        }\n    ],\n    \"sites\": [\n        {\n            \"name\": \"STOPPOINT_1\",\n            \"coordinates\": {\n                \"latitude\": -23.524322,\n                \"longitude\": -46.706273\n            },\n            \"logisticConstraints\": \"TEST\"\n        },\n        {\n            \"name\": \"STOPPOINT_2\",\n            \"coordinates\": {\n                \"latitude\": -23.623525,\n                \"longitude\": -46.703297\n            },\n            \"logisticConstraints\": \"TEST\"\n        },\n        {\n            \"name\": \"STOPPOINT_3\",\n            \"coordinates\": {\n                \"latitude\": -23.588551,\n                \"longitude\": -46.646401\n            },\n            \"logisticConstraints\": \"TEST\"\n        },\n        {\n            \"name\": \"STOPPOINT_4\",\n            \"coordinates\": {\n                \"latitude\": -23.504494,\n                \"longitude\": -46.857385\n            },\n            \"logisticConstraints\": \"TEST\"\n        },\n        {\n            \"name\": \"STOPPOINT_5\",\n            \"coordinates\": {\n                \"latitude\": -29.823819,\n                \"longitude\": -51.14773\n            },\n            \"logisticConstraints\": \"TEST\"\n        },\n        {\n            \"name\": \"STOPPOINT_6\",\n            \"coordinates\": {\n                \"latitude\": -25.556829,\n                \"longitude\": -49.348827\n            },\n            \"logisticConstraints\": \"TEST\"\n        },\n        {\n            \"name\": \"STOPPOINT_7\",\n            \"coordinates\": {\n                \"latitude\": -29.827506,\n                \"longitude\": -51.172703\n            },\n            \"logisticConstraints\": \"TEST\"\n        },\n        {\n            \"name\": \"STOPPOINT_8\",\n            \"coordinates\": {\n                \"latitude\": -29.827506,\n                \"longitude\": -51.172703\n            },\n            \"logisticConstraints\": \"TEST\"\n        },\n        {\n            \"name\": \"STOPPOINT_9\",\n            \"coordinates\": {\n                \"latitude\": -25.242227,\n                \"longitude\": -53.981779\n            },\n            \"logisticConstraints\": \"TEST\"\n        },\n        {\n            \"name\": \"STOPPOINT_10\",\n            \"coordinates\": {\n                \"latitude\": -29.638353,\n                \"longitude\": -51.004301\n            },\n            \"logisticConstraints\": \"TEST\"\n        }\n    ],\n    \"depots\": [\n        {\n            \"name\": \"DEPOT\",\n            \"coordinates\": {\n                \"latitude\": -23.504494,\n                \"longitude\": -46.857385\n            },\n            \"logisticConstraints\": \"TEST\"\n        }\n    ],\n    \"vehicleTypes\": [\n        {\n            \"name\": \"REFRIGERADO\",\n            \"maxVolume\": 100,\n            \"maxWeight\": 100,\n            \"size\": 10,\n            \"compartmentsAccessMode\": \"REAR_ACCESS\",\n            \"compartmentConfigurations\": [\n                {\n                    \"name\": \"COMPARTIMENTO_REFRIGERADO\",\n                    \"compartments\": [\n                        {\n                            \"name\": \"REFRIGERADO\",\n                            \"type\": \"FIXED\",\n                            \"maximumCapacity\": 1000,\n                            \"loadingRule\": \"NONE\",\n                            \"allowedPackagings\": [\n                                \"CONGELADOS\",\n                                \"RESFRIADOS\"\n                            ]\n                        }\n                    ]\n                }\n            ]\n        },\n        {\n            \"name\": \"SECO\",\n            \"maxVolume\": 100,\n            \"maxWeight\": 100,\n            \"size\": 10,\n            \"compartmentsAccessMode\": \"REAR_ACCESS\",\n            \"compartmentConfigurations\": [\n                {\n                    \"name\": \"COMPARTIMENTO_SECO\",\n                    \"compartments\": [\n                        {\n                            \"name\": \"SECO\",\n                            \"type\": \"FIXED\",\n                            \"maximumCapacity\": 1000,\n                            \"loadingRule\": \"NONE\",\n                            \"allowedPackagings\": [\n                                \"SECOS\"\n                            ]\n                        }\n                    ]\n                }\n            ]\n        },\n        {\n            \"name\": \"HIBRIDO\",\n            \"maxVolume\": 100,\n            \"maxWeight\": 100,\n            \"size\": 10,\n            \"compartmentsAccessMode\": \"REAR_ACCESS\",\n            \"compartmentConfigurations\": [\n                {\n                    \"name\": \"COMPARTIMENTO_HIBRIDO\",\n                    \"compartments\": [\n                        {\n                            \"name\": \"HIBRIDO\",\n                            \"type\": \"FIXED\",\n                            \"maximumCapacity\": 1000,\n                            \"loadingRule\": \"NONE\",\n                            \"allowedPackagings\": [\n                                \"CONGELADOS\",\n                                \"RESFRIADOS\",\n                                \"SECOS\"\n                            ]\n                        }\n                    ]\n                }\n            ]\n        }\n    ],\n    \"vehicles\": [\n        {\n            \"name\": \"VEHICLE_1\",\n            \"vehicleType\": \"REFRIGERADO\",\n            \"legislationProfile\": \"DEFAULT\",\n            \"availablePeriods\": [\n                {\n                    \"departureSite\": \"DEPOT\",\n                    \"arrivalSite\": \"DEPOT\",\n                    \"timeWindow\": {\n                        \"start\": 1624608000000,\n                        \"end\": 1624730400000\n                    },\n                    \"maxRoutesNumber\": 1\n                }\n            ]\n        },\n        {\n            \"name\": \"VEHICLE_2\",\n            \"vehicleType\": \"SECO\",\n            \"legislationProfile\": \"DEFAULT\",\n            \"availablePeriods\": [\n                {\n                    \"departureSite\": \"DEPOT\",\n                    \"arrivalSite\": \"DEPOT\",\n                    \"timeWindow\": {\n                        \"start\": 1624608000000,\n                        \"end\": 1624730400000\n                    },\n                    \"maxRoutesNumber\": 1\n                }\n            ]\n        },\n        {\n            \"name\": \"VEHICLE_3\",\n            \"vehicleType\": \"HIBRIDO\",\n            \"legislationProfile\": \"DEFAULT\",\n            \"availablePeriods\": [\n                {\n                    \"departureSite\": \"DEPOT\",\n                    \"arrivalSite\": \"DEPOT\",\n                    \"timeWindow\": {\n                        \"start\": 1624608000000,\n                        \"end\": 1624730400000\n                    },\n                    \"maxRoutesNumber\": 1\n                }\n            ]\n        }\n    ],\n    \"operations\": [\n        {\n            \"id\": \"STOPPOINT_1\",\n            \"priority\": 0,\n            \"volume\": 10,\n            \"weight\": 5,\n            \"product\": \"PEIXE\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_1\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_2\",\n            \"priority\": 0,\n            \"volume\": 10,\n            \"weight\": 5,\n            \"product\": \"PEIXE\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_2\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_3\",\n            \"priority\": 0,\n            \"volume\": 10,\n            \"weight\": 5,\n            \"product\": \"PEIXE\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_3\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_4\",\n            \"priority\": 0,\n            \"volume\": 0,\n            \"weight\": 0,\n            \"product\": \"PEIXE\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_4\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_5\",\n            \"priority\": 0,\n            \"volume\": 0,\n            \"weight\": 0,\n            \"product\": \"PEIXE\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_5\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_6\",\n            \"priority\": 0,\n            \"volume\": 0,\n            \"weight\": 0,\n            \"product\": \"LEITE\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_6\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_7\",\n            \"priority\": 0,\n            \"volume\": 0,\n            \"weight\": 0,\n            \"product\": \"LEITE\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_7\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_8\",\n            \"priority\": 0,\n            \"volume\": 0,\n            \"weight\": 0,\n            \"product\": \"LEITE\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_8\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_9\",\n            \"priority\": 0,\n            \"volume\": 0,\n            \"weight\": 0,\n            \"product\": \"LEITE\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_9\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_10\",\n            \"priority\": 0,\n            \"volume\": 0,\n            \"weight\": 0,\n            \"product\": \"LEITE\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_10\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_11\",\n            \"priority\": 0,\n            \"volume\": 100,\n            \"weight\": 100,\n            \"product\": \"SOJA\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_1\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_12\",\n            \"priority\": 0,\n            \"volume\": 0,\n            \"weight\": 0,\n            \"product\": \"SOJA\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_2\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_13\",\n            \"priority\": 0,\n            \"volume\": 0,\n            \"weight\": 0,\n            \"product\": \"SOJA\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_3\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_14\",\n            \"priority\": 0,\n            \"volume\": 0,\n            \"weight\": 0,\n            \"product\": \"SOJA\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_4\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        },\n        {\n            \"id\": \"STOPPOINT_15\",\n            \"priority\": 0,\n            \"volume\": 0,\n            \"weight\": 0,\n            \"product\": \"SOJA\",\n            \"type\": \"DELIVERY\",\n            \"depotSite\": \"DEPOT\",\n            \"customerSite\": \"STOPPOINT_5\",\n            \"customerTimeWindows\": [\n                {\n                    \"start\": 1624608000000,\n                    \"end\": 1624730400000\n                }\n            ]\n        }\n    ]\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In this example, we have a request to solve a logistics problem for a company with specialized vehicles for different types of cargo: frozen, chilled, and dry. There are 3 vehicles \u2013 one refrigerated (can carry frozen and chilled), one dry, and one hybrid (can carry all types). There are 15 delivery operations (stoppoints), with [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[160,33],"tags":[],"class_list":["post-3699","post","type-post","status-publish","format-standard","hentry","category-planning-en","category-uncategorized"],"acf":[],"_links":{"self":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/3699","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/comments?post=3699"}],"version-history":[{"count":2,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/3699\/revisions"}],"predecessor-version":[{"id":3701,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/3699\/revisions\/3701"}],"wp:attachment":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/media?parent=3699"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/categories?post=3699"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/tags?post=3699"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}