Route metrics on tours
This article explains how route metrics, the total duration and total distance, are calculated for tours and why they can be missing.
Introduction
MotionTools estimates the route metrics, the total duration and total distance, for every tour. These metrics are available on the Dashboard and through the API on the booking details payload.
Route metrics help logistics operators plan tours more efficiently by providing accurate estimates of total duration and distance, enabling better resource allocation and timely deliveries. They also support cost control, SLA monitoring, and operational transparency, all of which are critical for scalable and reliable operations.
Quality of service levels
Route metrics are calculated on two quality levels: Basic and Accurate.
On the Basic level, route metrics are calculated using a straight line between stops. This level is enabled by default.
On the Accurate level, route metrics are based on the actual route the driver is supposed to take. Accurate route calculations come with higher costs and are only available in our Enterprise plan. Please contact our Support Team at [email protected] if you'd like to switch to Enterprise.
Route metrics calculation principles
The initial route metrics are calculated at the time of creating a Tour and recalculated once the Tour starts. They are also updated on route changes, such as changes in stop order and the addition or removal of stops.
When estimating times, the calculation takes into account stop durations, which are the average times that drivers need to complete a stop. You can define stop durations for each service you offer via the Dashboard. An article on how and where to do this will be published soon.
The route metrics calculation takes into account the specific vehicle type used for each Tour. If a driver is assigned, the driver’s vehicle type will be used for the calculations. If no driver is assigned, the tour’s vehicle type is used. If neither is set, the tenant’s default vehicle type is used. This ensures route metrics accurately reflect real-world differences between bikes, cars, vans, and other vehicles.
When route metrics are missing
On the Accurate level, route metrics need a route along the road network that connects every stop of the tour. If no such route can be calculated, the tour has no route metrics: the Dashboard shows them as empty and the booking details payload in the API returns them as null. Metrics from an earlier version of the route are removed rather than left in place. On the Basic level this can't happen, because the straight-line calculation doesn't depend on the road network.
The usual cause is a stop whose geo-coordinates lie off the road network, for example in a body of water or on a site with no road access. Neither the Dashboard nor the API tells you which stop it is. To find it, check each stop's address and its pin on the map. Once you correct the stop's location, the route metrics are calculated again.
If the routing service is only temporarily unavailable, the calculation is retried automatically, so the metrics usually appear on their own once the service is available again.
Route metrics on the Dashboard
You can view the metrics on the Operations, Tours, and Tour Details pages.
Booking Card
Metrics are shown on the booking card on the Operations page or the Tours page in Map view. If hidden on the Operations page, enable them in the Edit Rows dropdown.
List View
On the Tours page in list view Metrics are shown in the Route metrics column. If the column is hidden, enable it in the Edit Columns dropdown.
Tour Details page
On the Tour Details page metrics are displayed under the Route section title.