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 › Fleet, trailers and site access

Fleet, trailers and site access

Describe which vehicles can serve which sites, where trailers can be uncoupled and how many vehicles a bay can handle at the same time. API Optim builds routes that respect these access constraints, and flags the operations that no vehicle can carry out.

Read the documentation
Request a demo

What the API handles

Who can go where, with which combination.

Access conditions are declared in logistics profiles attached to sites, separately for loading and delivery. Vehicles declare their equipment, size and unladen weight in their type. The extract opposite shows where each parameter goes; each card below links to its page in the technical documentation.

API Optim JSON structure grouping fleet and site access parameters: logistics profiles with required equipment, maximum size and weight, sites with dock constraints, vehicle types, trailers and their utilisation rule

01 Site access

Required equipment and qualifications

A site requires characteristics and a vehicle declares the ones it has: tail lift, auger, blower or a specific driver qualification. The vehicle must have all of them to serve the site.

requiredCharacteristics availableCharacteristics

View the technical page

Maximum vehicle size

The site sets a maximum size and the vehicle type declares its own. The unit is up to you: tonnage, gauge, length or number of axles.

maxAllowedSize size

View the technical page

Maximum laden weight

Laden weight is the vehicle’s unladen weight plus the weight of its contents. It changes with every loading, collection, delivery or unloading on the route.

maxAllowedWeight unloadedWeight

View the technical page

Operating zones

Link a set of sites to a set of vehicles, for example a mountain sector or a zone dedicated to a contractor. Sites and vehicles can belong to several zones.

logisticZones acceptedTrucks

View the technical page

02 Depots, departure and bays

Accessible depots

Attach each availability period of a vehicle to a depot profile: depots A and B on Monday, depot C on other days.

depotProfiles accessibleDepots idDepotProfile

View the technical page

Departure and return site

For an in-house fleet, have the vehicle start from and return to its yard, or to two different sites. Either one can be set on its own.

departureSite arrivalSite

View the technical page

Number of docks per site

Limit the number of vehicles loading or unloading at the same time on a site, with one limit for loading and another for unloading.

dockConstraints dockNumber use

View the technical page

03 Trailers

Access to trailer contents

Specify whether the trailer is loaded and unloaded to the site only, to the rigid truck only, or to both, which is the default setting. With site-only access, the full combination must be able to access the site.

utilizationRule SITE_ONLY TRUCK_ONLY SITE_AND_TRUCK

View the technical page

Serving with the full combination

The full combination can access the site if the trailer has the required equipment and the whole unit respects the maximum size and weight. A calculation setting, defined with our experts, can also prevent serving with the full combination: the trailer is then uncoupled beforehand.

trailers idVehicleType

View the technical page

Coupling and uncoupling sites

By default, the trailer can be uncoupled at a depot or at a collection or delivery site on the route. A calculation setting can restrict this to depots only.

isDepot

View the technical page

Partial operations

On a site with restricted access, the rigid truck uncouples its trailer nearby and carries out the operation in several runs, transferring to the trailer between two visits.

partialOperationsDetails TRANSFER

View the technical page

04 Mixed fleet

Journey profiles per vehicle

Use several journey profiles in the same calculation, for example a slow profile for heavy goods vehicles and a fast profile for light vehicles. Each vehicle type is attached to its own profile.

tripProfiles speedPreferences tripProfileName

View the technical page

Annotated example

A vehicle too large for the delivery site.

JSON request: a logistics profile limits the delivery site size to 16 and the vehicle type declares a size of 33
API JSON response: no route built and operation OPERATION_1 placed in the list of rejected operations

The logistics profile sets the maximum size of the delivery site to 16. It is attached to the site for delivery.

The vehicle type declares a size of 33, above the site’s limit.

The vehicle is not allowed to access the site: the operation is not scheduled and appears in the list of rejected operations.

What the API returns

A collection too large for the rigid truck alone.

Example from the documentation: a rigid truck with a capacity of 1,000 units, a trailer, and two collections on the same site of 1,200 and 800 units. Your software receives the details of each visit, with each operation’s share.

StepActivityVolumeWhat happens
1COLLECTION1,000The rigid truck collects 1,000 of the 1,200 units of operation 1, its maximum capacity.
2TRANSFER1,000It transfers these 1,000 units to the trailer and frees up its capacity.
3COLLECTION1,000It collects the remaining 200 units of operation 1 and the 800 units of operation 2.

The partialOperationsDetails field states, for each visit, the quantity handled for an operation carried out in several runs.

Good to know

A few rules to know before integrating.

RuleWhat you need to knowParameters involved
Access constraints add upEquipment, size and weight can be combined. Access is only allowed if the vehicle meets every constraint.requiredCharacteristics maxAllowedSize maxAllowedWeight
Loading and delivery are set separatelyThe same site can impose different access conditions depending on whether the vehicle comes to load or to deliver.logisticProfilesForLoading logisticProfilesForUnloading
An inaccessible operation is rejectedIf no vehicle can access the site, the operation is not scheduled and appears in the list of rejected operations.rejectOperations
Zoning applies to customer sitesBy default, only customer sites are covered by zones. Depots can be added if needed.logisticZones
A dock is only occupied during an activityWithout a service time, an activity does not block a dock. The dock limit therefore requires non-zero service times.dockConstraints fixedTimeSite
Docks are calculated on the full planThe dock limit is taken into account when the API knows the whole transport plan. It is not intended for actions that only cover part of the routes.dockConstraints
Without a departure site, the route starts at the first loadingBy default, the vehicle starts at the first loading or collection site and ends at the last delivery site. This suits contractors.departureSite arrivalSite

FAQ

Your questions about fleet, trailers and site access.

Discuss my project
Can a lorry deliver to a site with its trailer coupled?

Yes, if the full combination meets the site’s required equipment, maximum size and maximum weight. You can also prevent serving with the full combination: the trailer is then uncoupled before arriving on site.

Can certain vehicles be dedicated to a sector?

Yes. A zone links a set of sites to a set of vehicles. Vehicles assigned to a zone handle the routes in that zone.

Can the number of lorries at a bay at the same time be limited?

Yes, per site, with one limit for loading and another for unloading. This limit applies when the API calculates the full transport plan.

What happens if no vehicle can access a site?

The operation is not scheduled. It appears in the list of rejected operations returned by the API, and your software can show it to the planner.

Does the API take heavy goods vehicle traffic restrictions into account?

Each vehicle type can have its own journey profile, with speeds per road category. Traffic rules are described in the itinerary calculation documentation.

Take the next step

Test site access on your customers’ routes.

Our experts help you translate your customers’ fleet, trailers and access constraints 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)