TOVRConceptsHow TOVR works

Search

How TOVR keeps a search index of every load for the shipments board, the market map and the API, and how fresh that index is.

Search is the third step of How TOVR works. The shipments board and the market map do not read loads directly. They read a search index that holds one row per load with the facts you filter and sort on, already worked out.

How it works

  1. A load changes. It is created, its price is set, its status moves, or its rating is recalculated.
  2. It is queued. The change puts the load on a refresh queue. A change that only records "the exchange confirmed this load again" does not queue it, because nothing visible changed.
  3. The index row is rebuilt. The row for that load is rewritten from the load, its stops, its route and its price.
  4. The board and map read the new row. The map is read directly from the index, so it is current as soon as the index is.

Loads saved by an exchange poll do not wait for the queue: TOVR rebuilds their index rows straight after saving them, in batches of 500. Every other change waits for the queue. The queue is drained at once when a change is committed, and again every minute as a safety net, because the wake-up signal is not guaranteed to arrive.

What the index holds

FactHow it is worked outExample load
Pickup and deliveryCountries, postal codes, cities, points and the planned time windows of the first and last stopsSofia, BG → Munich, DE, pickup Monday 08:00
DistanceThe sum of the route's segment distances, converted to kilometres1,050 km
Freight rate in eurosThe freight rate above zero, read as its euro figure. Empty when no euro figure exists.EUR 1,890
Price sourceplatform, apex or heuristic, from Cleaning and identityplatform
Euros per kmFreight rate in euros ÷ distanceEUR 1.80
CargoWeight, loading metres, pallets, ADR class, temperature, load type13.6 m tautliner
StateStatus, availability, visibility, expiry, match countopen, public

What affects the result

  • Visibility. The market map shows loads whose visibility is public or platform. A load that is private to another organization never appears for you.
  • Availability. When the availability filter is enabled for your environment, the board shows only loads that are still open. When it is not, a load the exchange has already awarded can still appear until it expires by time.
  • Sort. The relevance sort ranks loads with a posted price ahead of loads with an estimated price.
  • Display currency. Prices carry a euro figure and are converted to your display currency when shown.

On the map, loads that share the exact same point and pickup day are drawn as one pin with a count. The card for that pin pages through every load in it.

The API

GET /api/v1/shipments reads your shipments, with the shipments:read scope.

ParameterValues
limit1 to 100, default 25
cursorThe next_cursor from the previous page. It is signed and only valid for the sort it was created with.
sortcreated_at (default) or pickup_at
status, availability, platformOptional filters, each a comma-separated list of values

Any other parameter is rejected with 422. A list answers {"object": "list", "data": [...], "has_more": true, "next_cursor": "..."}. A changed or tampered cursor answers 422 invalid_cursor. To follow changes instead of polling, read the change feed or register a webhook (see Change feed).

Limits

  • The index can lag by about a minute for changes that do not come from an exchange poll, such as a price update or a status change.
  • A load with no euro figure has no euro rate. If its price is in a currency without a rate for that day, the euro columns stay empty and it cannot be sorted by price per km.
  • Repeat postings are not collapsed. Two postings of the same load are two rows. TOVR merges map pins only when loads share the exact point and pickup day.

On this page