TOVRConceptsHow TOVR works

Matching

How TOVR pairs trucks with loads and loads with follow-on loads, the score formula and its thresholds, when matching runs, and what it does not check.

Matching is the fourth step of How TOVR works. It produces two kinds of match. A vehicle match says one of your trucks can reach a load's pickup in time. A load-to-load match says a truck finishing one load can pick up another one next. Both feed the chain builder in the next step.

How it works

Vehicle matches

  1. Pick the trucks. A truck takes part when it has reported a position in the last 5 days and its last location is known. Vans are left out by default.
  2. Find where and when each truck is free. TOVR uses the truck's declared availability windows first. With no window, it uses the truck's last telematics position and time as the moment it is free.
  3. Pick the loads. A load takes part when it is an open order, its pickup has a point and a planned time, its loading window has not closed, and it has a freight rate above zero. When the availability filter is enabled for your environment, the load must also still be open.
  4. Apply the tenancy rule. A truck sees a load when the load is public or platform, when the load belongs to the truck's organization, or when the organization saw the load through one of its own connections that has not been disconnected.
  5. Estimate. For each pair, TOVR estimates the empty distance as the straight line from where the truck is free to the pickup, × 1.3. The wait is the hours from when the truck is free to the planned pickup. The wait must be between 0 and 72 hours.
  6. Score. Each pair is scored with the formula below and kept when it scores at least the minimum score.
  7. Route. The empty distance of each kept pair is replaced by a truck route from TOVR's own routing service, and the pair is scored again on the routed kilometres. When no route answers, the pair keeps its estimated score and is saved without an empty distance.
  8. Save. The best pair per truck and load is saved, with its score, empty kilometres and wait.

Load-to-load matches

For each load, TOVR looks for loads whose pickup can follow its delivery:

  • the wait between the first load's delivery and the next pickup is between 2 hours and the limit set by the minimum score (about 20.5 hours at the default);
  • the empty distance is the straight line × 1.3, and the next pickup must be within about 142.5 km of road at the default settings;
  • the pair is scored with the same formula and kept at the minimum score or above;
  • at most the best 5 follow-on loads are kept per load.

A follow-on load whose estimated empty distance is under 50 km is a BACKHAUL match; anything further is CONTINUOUS.

The score

The score runs from 0 to 100: up to 40 points for distance and up to 60 points for waiting time.

distance points = max(0, (1 − empty km ÷ maximum empty km) × 40)
time points     = round(60 × e^(−0.021 × wait hours))
score           = round(distance points + time points)
SettingDefault
Minimum score80
Maximum empty distance300 km

The two settings interact. Even with a perfect 60 time points, a pair needs 19.5 distance points to reach 80. At a 300 km maximum that means at most about 154 km empty, not 300 km.

For the example, your truck is free on Monday at 02:00 about 30 km in a straight line from the pickup. The estimate is 39 km, and the routed distance is 40 km. The pickup is at 08:00, so the wait is 6 hours.

distance points = (1 − 40 ÷ 300) × 40 = 34.67
time points     = round(60 × e^(−0.021 × 6)) = round(52.90) = 53
score           = round(34.67 + 53) = 88

The load from Munich back toward Sofia picks up 25 km in a straight line from the Munich delivery, 14 hours after it. Its empty distance is 25 × 1.3 = 32.5 km, which makes it a BACKHAUL match:

distance points = (1 − 32.5 ÷ 300) × 40 = 35.67
time points     = round(60 × e^(−0.021 × 14)) = round(44.72) = 45
score           = round(35.67 + 45) = 81

When matching runs

TriggerWhat runs
You connect or activate an integration, create a shipment, add a vehicle or import vehiclesMatching and chain building for your organization, queued right away
New exchange loads arrive, when event-driven recompute is enabledMatching for the market, at most once every 600 seconds
Daily at 06:05 UTCA full pass over every truck and load, after cleanup, telematics and the exchange poll

Most matches come from the first two triggers. The daily pass catches what they missed, and on a normal day it creates few or none.

What you see

  • The Matches section of a vehicle lists its matches by score, highest first. Cancelled loads are left out.
  • When no route answered for a match, its empty distance shows as "—". When the truck is already at the pickup it shows "At the dock".
  • GET /api/v1/matches (scope matches:read) lists load-to-load matches only, with origin_shipment_id, match_shipment_id, own_side, score, deadhead_km, wait_time_hours and match_type. It returns ids, never embedded loads. A new match emits a match.created event.

Why a match is missing

A match is a candidate, not a decision: it says a truck could serve a load, and costing decides whether it pays. When a truck you expected to see against a load has no match, one of these is usually the reason.

ReasonWhat to check
Nothing to matchYour organization has no freight exchange or no telematics connected. See Connect an integration.
The truck is not in the poolIt has not reported a position in the last 5 days, its last location is unknown, or it is a van.
The load is not eligibleIt is not an open order, its pickup has no point or planned time, its loading window has closed, or it has no freight rate above zero.
You cannot see the loadIt is neither public nor platform, is not your own, and none of your connections saw it (a disconnected one does not count).
The timing does not fitThe truck is free only after the pickup, or more than 72 hours before it.
The score is too lowAt the default settings a pair needs at least 80 points, which means at most about 154 km empty with no wait at all, and less as the wait grows.
The load is goneIts exchange reports it taken, lapsed or withdrawn, or it was invoiced or cancelled.
Matching has not run yetConnecting an integration, creating a shipment or adding vehicles queues a run right away. Other changes wait for the next trigger in When matching runs.

Limits

  • The score is not a cost. It contains no money, toll, fuel or rate input. Whether a match pays is decided in Costing and chains.
  • Equipment, weight, ADR and temperature are not checked by default. TOVR records whether a truck looks capable of a load, but it does not drop a match for it.
  • A telematics position counts as availability. Without a declared window, TOVR treats the truck as free where and when it last reported. Declare availability windows for better matches.
  • Load-to-load distances are never routed. The API's deadhead_km for a load-to-load match is the straight-line estimate × 1.3.
  • A match disappears when its load can no longer be won. When a load is no longer open on its exchange, or is invoiced or cancelled, its matches are deleted. Every 15 minutes TOVR also removes matches below the minimum score.

On this page