Skip to content
API Optim, return to homepage
API Optim, return to homepage
API Optim, return to homepage
Industries

Milk collection

Animal feed

Flour milling

Live animals

Multi-temperature

Fuel

Features

Compartmentalised vehicles

Schedules and regulations

Fleet and site access

Route reoptimisation

Priorities and assignments

Pricing

Documentation

Resources

Quick start ↗

Use cases ↗

API updates Coming soon

Blog Coming soon

Request a demo
  • Documentation
  • Six heavy goods vehicle industries, already modelled

    Milk collection

    Compartment management and product downgrading

    Animal feed

    Bulk feed delivered to farms

    Flour milling

    Bulk and bagged flour, one flour type per compartment

    Live animals

    Multi-deck livestock trailers

    Multi-temperature

    Movable bulkheads, chilled and frozen goods in the same vehicle

    Fuel

    Diesel, petrol and heating oil in the same tanker

    Your customers’ industry isn’t listed? Let’s talk about their vehicles and their constraints.

    Discuss your project →

  • What the engine does

    Compartmentalised vehicles

    Compartments, configurations and loading rules

    Schedules and regulations

    Time windows, service times, driving and breaks

    Fleet and site access

    Equipment, size, weight, trailers and depots

    Route reoptimisation

    Modify an already optimised plan

    Priorities and assignments

    Required vehicles, priorities, unscheduled operations

    For your developers

    Each feature has its own page in the technical documentation.

    Parameters, example requests and results in JSON.

    Read the documentation
  • Pricing
  • Get started

    Quick start ↗

    Tutorial: calculate your first route in minutes

    Use cases ↗

    Add, move, reoptimise: what the API can do

    Coming soon

    API updates Coming soon

    API developments and new features

    Blog Coming soon

    Articles and guides on route optimisation.

    Start your trial

    Test the API using data from one of your customers.

    Tell us about your software and we’ll provide your trial key.

    Request a demo
  • en-gb
    • fr
Request a demo

Features › Compartmentalised vehicles

Compartmentalised vehicles

Describe every compartment of your customers’ vehicles: capacity, access mode, unit and filling rules. API Optim assigns each operation to a compatible compartment and builds the route in the same calculation.

Read the documentation
Request a demo

What the API handles

Eight rules to describe every vehicle.

All of them are declared in the same problem and can be combined. The structure opposite shows where each parameter goes; each card below links to its page in the technical documentation.

API Optim JSON structure grouping a vehicle’s compartmentalisation parameters: access mode, minimum and maximum compartment sizes, filling rule, allowed packagings, total capacity and calculation unit

Capacity of each compartment

Describe each compartment with its capacity, either fixed or variable between a minimum and a maximum. A total capacity can also cap all the compartments together, for example when movable bulkheads share the same trailer.

maximalSize minimalSize maxCapacity

View the technical page

Compartment access mode

Independent compartments, filled and emptied separately, as on a milk or heating oil tanker. Or rear access: at each stop on the route, only the area behind the last bulkhead can be reached.

COMPARTMENTS_ALL_ALWAYS_ACCESSIBLE FROM_THE_REAR_OF_THE_VEHICLE

View the technical page

Calculation unit

Choose the unit in which compartments are managed: volume (the default), weight, or an additional quantity specific to your business. Each operation states its quantity in this unit.

unitOfCompartments VOLUME WEIGHT FIRST_ADDITIONAL_QUANTITY

View the technical page

Filling rules

For each compartment, specify whether it takes a single operation, several operations of the same product or several operations with the same packaging.

fillRule ONLY_ONE_OPERATION OPERATIONS_WITH_SAME_PRODUCT OPERATIONS_WITH_SAME_PACKAGING

View the technical page

Products allowed per compartment

Reserve certain compartments for certain packagings: a frozen zone, a compartment dedicated to one fuel, a deck reserved for one category of animals.

restrictionAllowedPackagings idPackagings

View the technical page

Multiple configurations

A single vehicle can have several layouts: 2 or 3 decks on a livestock trailer with adjustable decks, with or without a frozen zone on a dual-temperature trailer. The engine selects the one that suits the operations.

othersCompartConfigurations

View the technical page

Product incompatibilities

Prevent two sets of products from sharing a compartment, over a route, an availability period or several consecutive routes.

productsIncompatibilities level scope numberOfConsecutiveRoutes

View the technical page

Collection after deliveries

On vehicles where collected goods would block access to those still to be delivered, only allow collections once all deliveries have been made.

acceptCollectionsOnlyAfterDeliveries

View the technical page

What the API returns

A loading plan your software can read.

The solution describes the routes and, for each stop, the contents of each compartment. Your software has everything it needs to prepare loading and guide unloading.

FieldContent
truckCompartmentsStatesThe state of a vehicle’s compartments at a stop on the route.
operationAssignmentsThe operations assigned to the vehicle in this state.
compartAssignmentsFor each operation, the compartment(s) used and the quantity placed in each. An order can therefore occupy several compartments.
compartmentsCapacitiesThe calculated size of each compartment: it shows the position of the movable bulkheads or the configuration selected.
idCompartementsStateOn loading or collection activities, the link to the corresponding compartment state.

Annotated example

One operation split across two compartments.

JSON request describing a vehicle with two independent compartments, each with a capacity of 10, expressed in volume
API JSON response: an operation of 14 split across two compartments, 10 in the first and 4 in the second

The two compartments are independent: each one is filled and emptied separately, whatever the order of the stops.

The filling rule of the first compartment allows several operations, provided they involve the same product.

The operation of 14 exceeds the capacity of one compartment: the API splits it across compartments 0 and 1 and states the quantity placed in each.

Good to know

A few rules to know before integrating.

RuleWhat you need to knowParameters involved
One unit per calculationAll operations state their quantity in the chosen unit: volume, weight or first additional quantity.unitOfCompartments
Rear access depends on the order of the stopsWith movable bulkheads, the loading options depend on the sequence of stops on the route.FROM_THE_REAR_OF_THE_VEHICLE
Consecutive routes require a wider scopeThe rule only applies if the scope goes beyond the route: availability period or vehicle.numberOfConsecutiveRoutes scope

In your customers’ industries

The same rules, six different industries.

Milk collection

Organic and conventional never in the same compartment.

Flour milling

One flour per compartment, shared or not depending on on-board weighing.

Fuel

One heating oil compartment for several customers of the same product.

Animal feed

One formula per compartment, delivered to the right silo.

Multi-temperature

Movable bulkheads, rear access, dual or triple temperature.

Live animals

2 or 3 decks depending on the animals being transported.

FAQ

Your questions about compartmentalised vehicles.

Discuss my project
Is compartmentalisation mandatory?

No. If your customers’ vehicles have no compartments, there is no need to describe them: the calculation then relies on the vehicle’s capacities.

Can an order occupy several compartments?

Yes. When an operation exceeds the capacity of a compartment, the API can split it across several compartments. The response states the quantity placed in each.

How do I model a trailer with movable bulkheads?

Give each compartment a minimum and maximum size, cap the whole with a total capacity and choose rear access. The response states the calculated size of each compartment.

How do I know which configuration was selected?

The list of compartment sizes returned for each state identifies which of the configurations declared by your software was used.

Take the next step

Test compartmentalisation on your customers’ vehicles.

Our experts help you translate your customers’ compartments, products and loading rules into API parameters.

Read the documentation

API Optim

The route and load optimisation API for heavy goods vehicles.

Request a demo

API

Documentation

Pricing

Industries

Milk collection

Animal feed

Flour milling

Live animals

Multi-temperature

Fuel

Features

Compartmentalised vehicles

Schedules and regulations

Fleet and site access

Route reoptimisation

Priorities and assignments

Company

About

Contact

AntsRoute


© 2026 API Optim. All rights reserved.

Legal notice

|

Privacy

|

Cookies

|

Your cookie preferences

We use audience measurement cookies to understand how the site is used and to improve it. They are only set with your consent, and you can change your mind at any time.

Functional Always active
Essential for the site to work: security, display language and remembering your choices. They cannot be disabled.
Preferences
Technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
Audience measurement with Google Analytics: pages viewed, length of visits and site performance. Technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your internet service provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
Technical storage or access is required to create user profiles in order to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
Customise
  • {title}
  • {title}
  • {title}
  • English
  • Français (French)