{"id":1133,"date":"2026-11-24T13:28:40","date_gmt":"2026-11-24T13:28:40","guid":{"rendered":"https:\/\/apioptim.com\/route-modification-and-reoptimisation\/"},"modified":"2026-11-26T13:47:35","modified_gmt":"2026-11-26T13:47:35","slug":"route-modification-reoptimisation","status":"publish","type":"page","link":"https:\/\/apioptim.com\/en\/route-modification-reoptimisation\/","title":{"rendered":"Route modification and reoptimisation"},"content":{"rendered":"\n<section class=\"wp-block-group alignfull has-main-color has-tertiary-background-color has-text-color has-background has-link-color wp-elements-1 has-global-padding is-layout-constrained wp-container-core-group-is-layout-90b67451 wp-block-group-is-layout-constrained\" style=\"margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--large);padding-right:var(--wp--preset--spacing--medium);padding-bottom:0;padding-left:var(--wp--preset--spacing--medium)\">\n<p class=\"alignwide apo-breadcrumb wp-block-paragraph\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-secondary-color\">Features<\/mark> \u203a Route modification and reoptimisation<\/p>\n\n\n\n<div class=\"wp-block-group alignwide has-global-padding is-content-justification-left is-layout-constrained wp-container-core-group-is-layout-db4b1562 wp-block-group-is-layout-constrained\">\n<h1 class=\"wp-block-heading\">Route modification and reoptimisation<\/h1>\n\n\n\n<p class=\"has-secondary-color has-text-color has-base-font-size wp-block-paragraph\">Add or remove operations on a route that is already scheduled, move or swap routes between vehicles, or reoptimise an existing plan. API Optim recalculates the times and flags any constraints that are no longer met.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\" style=\"margin-top:var(--wp--preset--spacing--small)\">\n<div class=\"wp-block-button apo-arrow apo-arrow--external\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/useCases\/actionsSynthesis\" target=\"_blank\" rel=\"noopener\">Read the documentation<\/a><\/div>\n\n\n\n<div class=\"wp-block-button is-style-outline apo-arrow is-style-outline--1\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/apioptim.com\/en\/book-a-demo\/\">Request a demo<\/a><\/div>\n<\/div>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator alignwide has-text-color has-border-light-color has-alpha-channel-opacity has-border-light-background-color has-background is-style-wide\"\/>\n<\/section>\n\n<section class=\"wp-block-group alignfull has-main-color has-tertiary-background-color has-text-color has-background has-link-color wp-elements-2 has-global-padding is-layout-constrained wp-container-core-group-is-layout-5c440928 wp-block-group-is-layout-constrained\" style=\"margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--large);padding-right:var(--wp--preset--spacing--medium);padding-bottom:var(--wp--preset--spacing--xx-large);padding-left:var(--wp--preset--spacing--medium)\">\n<div class=\"wp-block-columns alignwide are-vertically-aligned-center is-layout-flex wp-container-core-columns-is-layout-60fdf410 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-container-core-column-is-layout-ad406c26 wp-block-column-is-layout-flow\" style=\"flex-basis:52%\">\n<p class=\"apo-eyebrow wp-block-paragraph\">What the API handles<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Change the plan <em>without starting from scratch.<\/em><\/h2>\n\n\n\n<p class=\"has-secondary-color has-text-color has-base-font-size wp-block-paragraph\">Each change is an action sent with the routes concerned. Your software describes the current plan, states the action to perform and receives the recalculated routes. The extract opposite shows what an action looks like; each card below links to its page in the technical documentation.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:48%\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1108\" height=\"938\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/route-reoptimisation-json-structure.webp\" alt=\"JSON structure of an API Optim action applied to an existing plan: action type SCHEDULE_OPERATIONS_ON_EXISTING_ROUTES, operation to insert, target route and position, then reference plan with routes by vehicle and by period\" class=\"wp-image-1163\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/route-reoptimisation-json-structure.webp 1108w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/route-reoptimisation-json-structure-300x254.webp 300w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/route-reoptimisation-json-structure-1024x867.webp 1024w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/route-reoptimisation-json-structure-768x650.webp 768w\" sizes=\"auto, (max-width: 1108px) 100vw, 1108px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-group alignwide is-layout-flow wp-container-core-group-is-layout-414b44ad wp-block-group-is-layout-flow\">\n<h3 class=\"wp-block-heading apo-group-title\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-primary-color\">01<\/mark> Operations on a route<\/h3>\n\n\n\n<div class=\"wp-block-group is-layout-grid wp-container-core-group-is-layout-aaf97638 wp-block-group-is-layout-grid\">\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-ajout-position.webp\" alt=\"\" class=\"wp-image-758\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-ajout-position.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-ajout-position-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Add an operation at a given position<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">Insert an operation where the planner chooses, for example just before a delivery that is already planned. The rest of the route is recalculated.<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>SCHEDULE_OPERATIONS_ON_EXISTING_ROUTES<\/code> <code>position<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/useCases\/addOperation\/addPositionnedOperation\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-ajout-meilleur-endroit.webp\" alt=\"\" class=\"wp-image-757\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-ajout-meilleur-endroit.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-ajout-meilleur-endroit-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Add operations at the best position<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">Add one or more operations to an existing route: the API chooses where they go on the route.<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>SCHEDULE_OPERATIONS_ON_EXISTING_ROUTES<\/code> <code>operations<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/useCases\/addOperation\/addBestOperation\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-retrait-operations.webp\" alt=\"\" class=\"wp-image-770\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-retrait-operations.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-retrait-operations-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Remove operations<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">Unschedule some of the operations on a route. The remaining operations are kept and their times recalculated.<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>UNSCHEDULE_OPERATIONS_FROM_EXISTING_ROUTES<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/useCases\/removeOperations\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-group alignwide is-layout-flow wp-container-core-group-is-layout-414b44ad wp-block-group-is-layout-flow\">\n<h3 class=\"wp-block-heading apo-group-title\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-primary-color\">02<\/mark> Recalculating a route<\/h3>\n\n\n\n<div class=\"wp-block-group is-layout-grid wp-container-core-group-is-layout-aaf97638 wp-block-group-is-layout-grid\">\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-reoptimiser.webp\" alt=\"\" class=\"wp-image-769\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-reoptimiser.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-reoptimiser-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Reoptimise a route<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">Submit an existing route to recalculate its order. It can be described simply, by the ordered list of its operations, or by the result of a previous calculation.<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>OPTIMIZE_EXISTING_ROUTES<\/code> <code>referencePlanning<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/useCases\/routeOptimization\/existingRouteOptimization\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-evaluer.webp\" alt=\"\" class=\"wp-image-764\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-evaluer.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-evaluer-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Evaluate a route<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">Check that a route is still feasible after a change in constraints, such as a change to the vehicle\u2019s availability. The order of operations stays the same; the times may change.<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>EVALUATE_EXISTING_ROUTES<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/useCases\/evaluateRoute\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-inverser.webp\" alt=\"\" class=\"wp-image-767\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-inverser.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-inverser-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Reverse a route<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">Reverse the order of operations on a route that is already scheduled.<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>REVERSE_ROUTES<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/useCases\/revertRoute\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-imposer-horaire.webp\" alt=\"\" class=\"wp-image-766\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-imposer-horaire.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-imposer-horaire-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Impose a time<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">Set the departure time of an existing route, or a time window for one of its operations, then evaluate the route: the times are recalculated taking this constraint into account.<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>additionnalTemporalConstraints<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/useCases\/setTimes\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-group alignwide is-layout-flow wp-container-core-group-is-layout-414b44ad wp-block-group-is-layout-flow\">\n<h3 class=\"wp-block-heading apo-group-title\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-primary-color\">03<\/mark> Routes and vehicles<\/h3>\n\n\n\n<div class=\"wp-block-group is-layout-grid wp-container-core-group-is-layout-aaf97638 wp-block-group-is-layout-grid\">\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-deplacer-tournee.webp\" alt=\"\" class=\"wp-image-760\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-deplacer-tournee.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-deplacer-tournee-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Move a route to another vehicle<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">Transfer a route to another vehicle\u2019s availability period.<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>MOVE_EXISTING_ROUTES<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/useCases\/moveRoute\/moveRouteVehicle\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-echanger-tournees.webp\" alt=\"\" class=\"wp-image-761\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-echanger-tournees.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-echanger-tournees-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Swap two routes<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">Swap two routes scheduled on two different vehicles.<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>SWAP_EXISTING_ROUTES<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/useCases\/moveRoute\/swapRoute\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-echanger-vehicules.webp\" alt=\"\" class=\"wp-image-762\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-echanger-vehicules.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-echanger-vehicules-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Swap the activity of two vehicles<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">Swap all the routes in one availability period with those of another vehicle.<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>SWAP_TRUCK_PERIODS<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/useCases\/moveRoute\/swapPeriod\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-fusionner-tournees.webp\" alt=\"\" class=\"wp-image-765\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-fusionner-tournees.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-fusionner-tournees-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Merge routes<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">Combine several routes into one, even if they come from different vehicles or periods.<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>MERGE_EXISTING_ROUTES<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/useCases\/otherRouteActions\/mergeRoute\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-enchainer-tournees.webp\" alt=\"\" class=\"wp-image-763\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-enchainer-tournees.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-enchainer-tournees-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Chain routes<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">Put several routes end to end in the order given. Operations keep their order, even if the result is not optimised.<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>CONCATENATE_EXISTING_ROUTES<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/useCases\/otherRouteActions\/concatRoute\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-supprimer-tournees.webp\" alt=\"\" class=\"wp-image-771\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-supprimer-tournees.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-supprimer-tournees-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Delete routes<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">Unschedule a list of routes. The vehicle\u2019s other routes in the period are kept.<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>UNSCHEDULE_EXISTING_ROUTES<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/useCases\/otherRouteActions\/deleteRoute\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-group alignwide is-layout-flow wp-container-core-group-is-layout-414b44ad wp-block-group-is-layout-flow\">\n<h3 class=\"wp-block-heading apo-group-title\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-primary-color\">04<\/mark> Global reoptimisation<\/h3>\n\n\n\n<div class=\"wp-block-group is-layout-grid wp-container-core-group-is-layout-aaf97638 wp-block-group-is-layout-grid\">\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-completer-plan.webp\" alt=\"\" class=\"wp-image-759\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-completer-plan.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-completer-plan-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Complete an existing plan<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">Run a global optimisation that takes routes already scheduled into account and adds the operations still to be scheduled.<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>COMPUTE_ROUTES<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/useCases\/globalOptimization\/optWithPartialSolution\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-proteger-tournees.webp\" alt=\"\" class=\"wp-image-768\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-proteger-tournees.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/reoptimisation-tournees-icone-proteger-tournees-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Protect existing routes<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">Give each route a status: free by default, open, with a list of removable operations, or closed: its operations stay on the same vehicle and none are added.<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>status<\/code> <code>FREE<\/code> <code>OPEN<\/code> <code>CLOSED<\/code> <code>removableOperations<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/useCases\/globalOptimization\/routeStatus\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/section>\n\n<section class=\"wp-block-group alignfull has-main-color has-base-background-color has-text-color has-background has-link-color wp-elements-3 has-global-padding is-layout-constrained wp-container-core-group-is-layout-6097bdb0 wp-block-group-is-layout-constrained\" style=\"margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--xx-large);padding-right:var(--wp--preset--spacing--medium);padding-bottom:var(--wp--preset--spacing--xx-large);padding-left:var(--wp--preset--spacing--medium)\">\n<div class=\"wp-block-group alignwide has-global-padding is-content-justification-left is-layout-constrained wp-container-core-group-is-layout-026839e7 wp-block-group-is-layout-constrained\">\n<p class=\"apo-eyebrow wp-block-paragraph\">Annotated example<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">A delivery added <em>at the chosen position.<\/em><\/h2>\n<\/div>\n\n\n\n<div class=\"wp-block-columns alignwide is-layout-flex wp-container-core-columns-is-layout-947d9d8b wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1270\" height=\"664\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/route-reoptimisation-example-request.webp\" alt=\"JSON request: SCHEDULE_OPERATIONS_ON_EXISTING_ROUTES action inserting delivery OPERATION_07 into route 000ZYX1DH01, before delivery OPERATION_05\" class=\"wp-image-1162\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/route-reoptimisation-example-request.webp 1270w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/route-reoptimisation-example-request-300x157.webp 300w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/route-reoptimisation-example-request-1024x535.webp 1024w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/route-reoptimisation-example-request-768x402.webp 768w\" sizes=\"auto, (max-width: 1270px) 100vw, 1270px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1270\" height=\"664\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/route-reoptimisation-example-response.webp\" alt=\"API JSON response: deliveries on the recalculated route, with OPERATION_07 at site _MOULINS placed between CJM and XYRIC\" class=\"wp-image-1161\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/route-reoptimisation-example-response.webp 1270w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/route-reoptimisation-example-response-300x157.webp 300w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/route-reoptimisation-example-response-1024x535.webp 1024w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/route-reoptimisation-example-response-768x402.webp 768w\" sizes=\"auto, (max-width: 1270px) 100vw, 1270px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-group alignwide apo-notes is-layout-grid wp-container-core-group-is-layout-0e995563 wp-block-group-is-layout-grid\">\n<p class=\"apo-note has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">The existing route has five deliveries from the same depot. It is sent as is with the new operation and its site.<\/p>\n\n\n\n<p class=\"apo-note has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">The action specifies the target route and the position: before delivery OPERATION_05.<\/p>\n\n\n\n<p class=\"apo-note has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">The API inserts the Moulins delivery between CJM and XYRIC, and recalculates the journeys and times for the whole route.<\/p>\n<\/div>\n<\/section>\n\n<section class=\"wp-block-group alignfull apo-dark has-base-color has-main-background-color has-text-color has-background has-link-color wp-elements-4 has-global-padding is-layout-constrained wp-container-core-group-is-layout-6097bdb0 wp-block-group-is-layout-constrained\" style=\"margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--xx-large);padding-right:var(--wp--preset--spacing--medium);padding-bottom:var(--wp--preset--spacing--xx-large);padding-left:var(--wp--preset--spacing--medium)\">\n<div class=\"wp-block-group alignwide has-global-padding is-content-justification-left is-layout-constrained wp-container-core-group-is-layout-026839e7 wp-block-group-is-layout-constrained\">\n<p class=\"apo-eyebrow wp-block-paragraph\">What the API returns<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">A recalculated route, <em>with its alerts.<\/em><\/h2>\n\n\n\n<p class=\"has-main-accent-color has-text-color has-base-font-size wp-block-paragraph\">After each action, the solution returns the routes concerned, recalculated. If a route no longer meets all the constraints, it comes with the list of constraints not met: your software can display it to the planner.<\/p>\n<\/div>\n\n\n\n<figure class=\"wp-block-table alignwide apo-fields\"><table><thead><tr><th>Field<\/th><th>Content<\/th><\/tr><\/thead><tbody><tr><td><code>vehicleRoutes<\/code><\/td><td>The recalculated routes, grouped by vehicle and by availability period.<\/td><\/tr><tr><td><code>routes<\/code><\/td><td>Each route with its identifier, which your software reuses for subsequent actions.<\/td><\/tr><tr><td><code>activities<\/code><\/td><td>The route\u2019s new sequence of activities, in visiting order.<\/td><\/tr><tr><td><code>timeWindow<\/code><\/td><td>The recalculated times of each activity, from departure to return.<\/td><\/tr><tr><td><code>violationConstraints<\/code><\/td><td>The list of constraints the route no longer meets, for example a route ending after the vehicle\u2019s availability ends.<\/td><\/tr><tr><td><code>code \u00b7 messageViolation<\/code><\/td><td>For each constraint, a code and a readable message, for example DEP0042 \u201cEnd of time window exceeded\u201d.<\/td><\/tr><\/tbody><\/table><\/figure>\n<\/section>\n\n<section class=\"wp-block-group alignfull has-main-color has-tertiary-background-color has-text-color has-background has-link-color wp-elements-5 has-global-padding is-layout-constrained wp-container-core-group-is-layout-6097bdb0 wp-block-group-is-layout-constrained\" style=\"margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--xx-large);padding-right:var(--wp--preset--spacing--medium);padding-bottom:var(--wp--preset--spacing--xx-large);padding-left:var(--wp--preset--spacing--medium)\">\n<div class=\"wp-block-group alignwide has-global-padding is-content-justification-left is-layout-constrained wp-container-core-group-is-layout-fc877c7a wp-block-group-is-layout-constrained\">\n<p class=\"apo-eyebrow wp-block-paragraph\">Good to know<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">A few rules <em>to know before integrating.<\/em><\/h2>\n<\/div>\n\n\n\n<figure class=\"wp-block-table alignwide apo-rules\"><table><thead><tr><th>Rule<\/th><th>What you need to know<\/th><th>Parameters involved<\/th><\/tr><\/thead><tbody><tr><td>An evaluation does not change the order<\/td><td>Evaluation keeps the order of operations. It can change the times and add or remove alerts on constraints not met.<\/td><td><code>EVALUATE_EXISTING_ROUTES<\/code><\/td><\/tr><tr><td>A route to be reoptimised covers a single vehicle<\/td><td>By design, the route submitted is linked to a single vehicle and a single availability period.<\/td><td><code>OPTIMIZE_EXISTING_ROUTES<\/code><\/td><\/tr><tr><td>Send all the activity for the period<\/td><td>To move or swap a route, also send the vehicle\u2019s other routes for the same period, for each vehicle involved.<\/td><td><code>referencePlanning<\/code> <code>MOVE_EXISTING_ROUTES<\/code> <code>SWAP_EXISTING_ROUTES<\/code><\/td><\/tr><tr><td>Chaining keeps the order given<\/td><td>Routes are put end to end in the order given, without optimising the whole.<\/td><td><code>CONCATENATE_EXISTING_ROUTES<\/code><\/td><\/tr><tr><td>A closed route can still be reordered<\/td><td>The open and closed statuses fix the operations on the vehicle, but the order and times can change if the solution improves. To keep a route identical, combine the status with fixed times.<\/td><td><code>status<\/code> <code>CLOSED<\/code> <code>additionnalTemporalConstraints<\/code><\/td><\/tr><tr><td>The dock limit requires the full plan<\/td><td>The constraint on the number of docks is not intended for actions that only cover part of the routes.<\/td><td><code>dockConstraints<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n<\/section>\n\n<section class=\"wp-block-group alignfull has-main-color has-tertiary-background-color has-text-color has-background has-link-color wp-elements-6 has-global-padding is-layout-constrained wp-container-core-group-is-layout-ef74826b wp-block-group-is-layout-constrained\" style=\"margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--xx-large);padding-right:var(--wp--preset--spacing--medium);padding-bottom:var(--wp--preset--spacing--xx-large);padding-left:var(--wp--preset--spacing--medium)\">\n<div class=\"wp-block-columns alignwide is-layout-flex wp-container-core-columns-is-layout-eebd7b81 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-container-core-column-is-layout-ad406c26 wp-block-column-is-layout-flow\" style=\"flex-basis:36%\">\n<p class=\"apo-eyebrow wp-block-paragraph\">FAQ<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Your questions about <em>reoptimisation.<\/em><\/h2>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\" style=\"margin-top:var(--wp--preset--spacing--small)\">\n<div class=\"wp-block-button is-style-outline apo-arrow is-style-outline--2\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/apioptim.com\/en\/contact\/\">Discuss my project<\/a><\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-container-core-column-is-layout-6c6d749c wp-block-column-is-layout-flow\" style=\"flex-basis:64%\">\n<details class=\"wp-block-details apo-faq is-layout-flow wp-block-details-is-layout-flow\" open><summary>Do I need to send the full details of a route to reoptimise it?<\/summary>\n<p class=\"wp-block-paragraph\">No. The ordered list of operation identifiers, linked to the route identifier, is enough. You can also send back the full result of a previous calculation.<\/p>\n<\/details>\n\n\n\n<details class=\"wp-block-details apo-faq is-layout-flow wp-block-details-is-layout-flow\"><summary>Can a last-minute order be added without recalculating the whole plan?<\/summary>\n<p class=\"wp-block-paragraph\">Yes. The operation is added to an existing route, at the chosen position or the best position. The action only affects the target route.<\/p>\n<\/details>\n\n\n\n<details class=\"wp-block-details apo-faq is-layout-flow wp-block-details-is-layout-flow\"><summary>What happens if the modified route no longer meets the constraints?<\/summary>\n<p class=\"wp-block-paragraph\">The route is still returned, with the list of constraints not met: a code and a message for each.<\/p>\n<\/details>\n\n\n\n<details class=\"wp-block-details apo-faq is-layout-flow wp-block-details-is-layout-flow\"><summary>Can certain routes be kept intact during a global reoptimisation?<\/summary>\n<p class=\"wp-block-paragraph\">Yes. The operations of a closed route stay scheduled on the same vehicle, and no new operations are added to it. To keep the order and times as well, combine this status with fixed times.<\/p>\n<\/details>\n\n\n\n<details class=\"wp-block-details apo-faq is-layout-flow wp-block-details-is-layout-flow\"><summary>Can the departure time of an existing route be imposed?<\/summary>\n<p class=\"wp-block-paragraph\">Yes. The departure time or the time of an operation is set on the existing route, and evaluating the route recalculates the times taking this constraint into account. Full details are on the <a href=\"https:\/\/apioptim.com\/en\/schedules-service-times-regulations\/\">Schedules, service times and regulations<\/a> page.<\/p>\n<\/details>\n<\/div>\n<\/div>\n<\/section>\n\n<section class=\"wp-block-group alignfull apo-dark has-base-color has-main-background-color has-text-color has-background has-link-color wp-elements-7 has-global-padding is-layout-constrained wp-container-core-group-is-layout-ef74826b wp-block-group-is-layout-constrained\" style=\"margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--xx-large);padding-right:var(--wp--preset--spacing--medium);padding-bottom:var(--wp--preset--spacing--xx-large);padding-left:var(--wp--preset--spacing--medium)\">\n<div class=\"wp-block-group has-global-padding is-layout-constrained wp-container-core-group-is-layout-b62929bc wp-block-group-is-layout-constrained\">\n<p class=\"has-text-align-center apo-eyebrow wp-block-paragraph\">Take the next step<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center\">Test route changes <em>on your customers\u2019 routes.<\/em><\/h2>\n\n\n\n<p class=\"has-text-align-center has-main-accent-color has-text-color has-base-font-size wp-block-paragraph\">Our experts help you translate your customers\u2019 planning adjustments into API actions.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-aeb74038 wp-block-buttons-is-layout-flex\" style=\"margin-top:var(--wp--preset--spacing--medium)\">\n<div class=\"wp-block-button is-style-outline apo-arrow apo-arrow--external is-style-outline--3\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/\" target=\"_blank\" rel=\"noopener\">Read the documentation<\/a><\/div>\n<\/div>\n<\/div>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>Features \u203a Route modification and reoptimisation Route modification and reoptimisation Add or remove operations on a route that is already scheduled, move or swap routes between vehicles, or reoptimise an existing plan. API Optim recalculates the times and flags any constraints that are no longer met. What the API handles Change the plan without starting [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-no-title","meta":{"wpai_generated_summary":"","footnotes":""},"class_list":["post-1133","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/apioptim.com\/en\/wp-json\/wp\/v2\/pages\/1133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apioptim.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/apioptim.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/apioptim.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/apioptim.com\/en\/wp-json\/wp\/v2\/comments?post=1133"}],"version-history":[{"count":5,"href":"https:\/\/apioptim.com\/en\/wp-json\/wp\/v2\/pages\/1133\/revisions"}],"predecessor-version":[{"id":1166,"href":"https:\/\/apioptim.com\/en\/wp-json\/wp\/v2\/pages\/1133\/revisions\/1166"}],"wp:attachment":[{"href":"https:\/\/apioptim.com\/en\/wp-json\/wp\/v2\/media?parent=1133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}