Home / Route optimization constraints

Route optimization constraints

Every rule the optimizer can respect when it plans your routes, in one table: what you set, and where you set it.

Full table of route optimization constraints

Constraints are the rules a route plan must follow: vehicle capacity, driver shifts, time windows, closed roads and more. “Dashboard, API” means you set it in the routeDesk dashboard or in a request to the routeOptimizer API. “API” means only in an API request. “API, mobile app” means it is set in an API request or in the mobile driver app.

Vehicles and shifts

ConstraintWhat you setWhere
Vehicle capacityMaximum load per vehicle by weight (kg) or volume (m³). Capacity in units: API.Dashboard, API
Allowed overloadA percentage by which a vehicle may exceed its capacity.Dashboard, API
Two compartmentsSeparate capacities, for example rack and floor, with automatic assignment of stops, splitting of big orders and a delivery priority per compartment.Dashboard, API
Shift hoursStart and end time per vehicle, and the latest time all work must be finished.Dashboard, API
Start and end locationA depot per vehicle: a terminal, an address or a stop. The vehicle returns to the start or ends at its last stop.Dashboard, API
Lunch break timeOne break per vehicle: the earliest start, the latest end and the duration.Dashboard, API
Lunch break placeThe place where the driver takes the break: the route passes through it.API, mobile app
web dashboard: coming soon
Several tours per dayThe vehicle goes back to the warehouse and out again: maximum number of tours and reload time at the warehouse.Dashboard, API
Maximum stopsA limit on the number of stops per vehicle, and per customer type.Dashboard, API
Vehicle typeCar, truck, bus, bicycle, motorcycle, scooter or on foot. Travel times follow the chosen type.Dashboard, API
Vehicle speed coefficientA coefficient that adjusts the travel speed of one vehicle, set per vehicle in Settings > Default parameters or in the vehicle constraints.Dashboard, API
Vehicle costA fixed cost per vehicle and a global cost of a new vehicle: the higher it is, the fewer vehicles are used.Dashboard, API
Vehicle limited to areasA vehicle serves only the areas you list for it.API

Stops and orders

ConstraintWhat you setWhere
Time windowsEarliest and latest arrival per stop. An open side falls back to the shift start or end.Dashboard, API
Service timeTime spent at a stop, set per stop or per stop type.Dashboard, API
Stop priorityA priority level per stop.Dashboard, API
Load per stopWeight, volume or units of each stop.Dashboard, API
Preferred vehiclePin a stop to one or several vehicles, for example by plate number.Dashboard, API
Pickup and delivery pairsThe pickup is visited before its delivery, by the same vehicle. Dashboard: orders from the system. Plain CSV import: API.Dashboard, API
Visit orderA stop must come before or after other stops.API
Grouping of stopsVisit stops with the same coordinates, the same customer or within a radius in meters as one stop.Dashboard, API

Roads and areas

ConstraintWhat you setWhere
Excluded areasDraw or select areas on the map: for this run, no route uses roads inside them.Dashboard, API
Dated road bansClosed roads or areas with a start and end date, saved once and used by every run.API
Avoid ferries, highways and tollsTry to avoid ferries, highways, toll roads, living streets and track roads. A preference, applied where possible.Dashboard, API
Slower zones (speed inside polygons)Make travel inside chosen polygons slower: multiply the travel time by a whole number or add a fixed cost. Approximate, based on the straight line between two stops.API
Delivery areasDraw polygons on the map, save or import them, and optimize only the stops inside the chosen areas.Dashboard, API
Planning by areaAn extra cost when a route moves from one area to another, and distance limits inside and between areas.Dashboard, API

Optimization modes

ConstraintWhat you setWhere
Whole-fleet optimizationOne plan for all selected areas and all selected vehicles in a single run, with no area-by-area splitting.Dashboard, API
Balance loadDistribute the load evenly between the selected vehicles.Dashboard, API
Optimize by distance or durationChoose whether the plan minimizes kilometers or time.Dashboard, API
Distance between stopsA maximum distance between two consecutive stops, by default or per area.Dashboard, API
Maximum waiting timeThe longest idle time allowed between two stops.Dashboard, API
Automatic clusteringSplit the stops into clusters by distance or by the number of clusters.Dashboard, API

Need a rule that is not in the table? Contact us.

Plan routes with your own rules

Set vehicles, shifts and road rules in the browser with routeDesk, or send the same constraints in a request to the routeOptimizer API.