Smartlane API

The Smartlane API Developer Hub

Welcome to the Smartlane API developer hub. You'll find comprehensive guides and documentation to help you start working with Smartlane API as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

Routing Types

Optimized Time Window Routing

/calcroute/optimized/timewindow

Calculates the shortest route for deliveries with time windows and a common starting point.

Calculates one continuous route for all given deliveries. It calls an intelligent algorithm which fits all delivery times into their respective time windows but also results in the shortest possible overall driving time.

/calcroute/update/timewindow/{route_id}: Update etas timewindow (id)

Calculates the estimated time of arrival for all active deliveries on one route with a given ID.

This is an API call for calculating all estimated arrival times for all deliveries on a given route (which must be in the status 'ontheway'). The values are stored as 'eta_from' and 'eta_to' in the delivery tables of the database an can be retrieved via GET /delivery for each delivery.
Calculation is done between the current position of a driver on the delivery's route and all deliveries each which must not be unassigned, (already) delivered or cancelled.
The current and predicted traffic situation are considered in this call.
The relevant route and the referring driver are automatically derived from the given route.
All already delivered or cancelled assignments must have set a correct status. Otherwise they will be falsely considered in this calculation.