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 › Schedules, service times and regulations

Schedules, service times and regulations

Describe when each site can be served, how long each operation takes and which rules apply to drivers. API Optim builds routes that respect these schedules and places waiting times, breaks and rest periods in the same calculation.

Read the documentation
Request a demo

What the API handles

Schedules, service times and driving rules.

Schedules are declared on sites and operations, service times in logistics profiles, and driver rules in legislation profiles attached to vehicles. The extract opposite shows where each parameter goes; each card below links to its page in the technical documentation.

API Optim JSON structure grouping schedule and time parameters: recurring time profiles, logistics profiles with fixed times per site and per operation, legislation profiles with continuous driving time, break duration and treatment of waiting time

01 Site and operation schedules

Operation time windows

Give each operation an earliest and a latest date, for loading as well as delivery.

earliestLatestDatesOnOrigin earliestLatestDatesOnDestination

View the technical page

Site opening hours

Define time profiles with fixed dates or recurring by day of the week, and link them to a site, separately for loading and unloading, or directly to an operation.

timeProfiles recurrentTimeWindows timesProfilesForLoading timesProfilesForUnloading

View the technical page

Exceptional closures

Close a site for a given period, an afternoon or a few hours, without changing its usual time profile.

timeProfileExceptions CLOSED timesProfilesExceptions

View the technical page

Schedules by type of goods

The same site can accept one product family at certain times and another at other times. The profile applied depends on the family of the product carried.

timesProfilesForUnloading idProductFamily

View the technical page

Schedules by visit

When an operation is delivered or collected in several runs within the same transport plan, each visit can have its own schedule, using a calculation setting defined with our experts.

timeOtherPassages nbPassages

View the technical page

02 Service times

Fixed times

A fixed time per site visit, a fixed time per operation handled, or both: for example 10 minutes per stop and 1 minute per order.

logisticProfiles fixedTimeSite fixedTimeOperation

View the technical page

Quantity-based times

Calculate loading or unloading time from a flow rate. The handling unit is up to you: pallets, volume, weight, bags.

flow logisticProfilesForLoading logisticProfilesForUnloading

View the technical page

Vehicle-based flow rate

The flow rate can also depend on the vehicle: on the product family unloaded or on the handling equipment it has.

unloadingFlows idProductFamily idCharacteristic

View the technical page

03 Driver regulations

Waiting time

Cap waiting time between two operations and choose whether it counts as working time.

maxWaitingTime waitingIsWorking

View the technical page

Working and driving time

Limit working time and driving time over each availability period of a vehicle.

availablePeriods maxWorkingTime maxDrivingTime

View the technical page

Breaks and rest

Trigger a break after a period of continuous driving or working, which can be split, and a rest after a cumulative time. Counters can reset to zero for each route, for example when the driver changes.

legislationProfiles maxContinuousDrivingTime drivingPauseDurationCuts workingRestDuration pauseManagementByRoute

View the technical page

Night work

Define the night period and a shorter maximum working time as soon as part of the work takes place at night.

nightDefinition maxWorkingTimeAtNightBeforeRest

View the technical page

Additional stops

Add stops to the route: within a time slot, such as a lunch break between 12:00 and 14:00, after a period of working or driving, or at the start or end of each route.

stops timeConditions workConditions positionConditions

View the technical page

Imposed time on an existing route

Set the time of an operation or the departure date of a route that is already scheduled. If the route no longer meets all the constraints, the response flags them.

additionnalTemporalConstraints

View the technical page

What the API returns

A time for every activity on the route.

The solution describes each route as a sequence of time-stamped activities. Your software knows when the vehicle arrives, how long it stays on site and where waiting times, breaks and rest periods are placed.

FieldContent
activityThe type of each activity on the route, including departure, loading, journey, delivery, collection, unloading, waiting, break, rest, stop and end.
timeWindowThe start and end time of each activity, to the second or the minute depending on the chosen precision.
notWorkedIndicates that a wait, break, rest or stop is not counted as working time.
nominalDurationFor each journey, its duration and the distance travelled.
violationConstraintsFor an action on existing routes, the list of constraints not met, with a code and a message.

Annotated example

A 45-minute break after 4 h 30 of driving.

JSON request declaring a legislation profile with a 45-minute break after 4 h 30 of continuous driving, splittable into 15 then 30 minutes, attached to a lorry’s availability period
API JSON response: a PAUSE activity inserted into the route from 12:30 to 13:15 at the depot, not counted as working time

Durations are in seconds: 16,200 s corresponds to 4 h 30 of continuous driving, 2,700 s to a 45-minute break.

The break can be taken in two parts, 15 minutes then 30 minutes. The profile is attached to the vehicle’s availability period.

Once the threshold is reached, the API inserts a 45-minute PAUSE activity into the route. It is not counted as working time.

Good to know

A few rules to know before integrating.

RuleWhat you need to knowParameters involved
The operation’s profile takes precedence over the site’sWith no time profile on either the operation or the site, the site is considered open 24/7.idTimeProfileOnDestination timesProfilesForUnloading
Time windows and opening hours intersectThe selected time must respect both the operation’s earliest and latest dates and the time profile. If they do not overlap, the operation cannot be scheduled.earliestLatestDatesOnDestination timeProfiles
Waiting counts as work by defaultIf the parameter is not set in the legislation profile, waiting times are counted as working time.waitingIsWorking
The flow rate per characteristic takes priorityIf both a flow rate per characteristic and a flow rate per product family are defined, only the first is taken into account.unloadingFlows idCharacteristic
Durations are declared in secondsFlow rates are expressed in handling units per second. Calculation precision can be set to the second or the minute.timePrecision flow

In your customers’ industries

The same rules, six different industries.

Milk collection

Farm opening hours, collection time windows and drivers’ night work.

Flour milling

Receiving time windows often early in the morning, blowing times based on tonnage.

Fuel

Service stations that receive deliveries in specific time windows.

Animal feed

Different delivery time windows depending on the product.

Multi-temperature

Receiving hours at shops and restaurants.

Live animals

Access hours by species, drivers’ driving times and breaks.

FAQ

Your questions about schedules and regulations.

Discuss my project
Can a site have different hours for loading and delivery?

Yes. A site can have one time profile for loading or collection and another for unloading or delivery.

How do I handle an exceptional site closure?

Declare a closure exception for the period concerned and link it to the site. The usual time profile stays unchanged.

Are breaks placed automatically?

Yes, by default. As soon as a driving or working threshold is reached, the API inserts a break or rest into the route. These activities are not counted as working time.

Can counters be reset between two routes?

Yes. Driving and working times can reset to zero at the end of each route, which lets you model, for example, a change of driver on the same vehicle.

Does the API check the regulations that apply to my customers’ business?

The API applies the thresholds declared by your software: driving time, breaks, rest, night work. Choosing the values that match the applicable regulations remains your customers’ responsibility.

Take the next step

Test schedules on your customers’ routes.

Our experts help you translate your customers’ time windows, service times and driving 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)