RideKit
Docs/Reference/Brazil: tolls, motorcycles and free-flow gantries

Brazil: tolls, motorcycles and free-flow gantries

Built: 2026-11-03. Written for operators in Brazil and whoever maintains the code.

Uber in Brazil puts tolls in the quoted price. The rider pays only the tolls crossed while on board, and the toll goes to the driver whole, outside the platform's fee. Brazil is also replacing toll booths with free-flow gantries that bill the car's plate. Since August 2026 the government's CNH do Brasil app lists free-flow passages.

RideKit's toll gates (see docs/toll-gates.md) already did most of this. Every point below now holds in Brazil:

What riders and drivers expect How RideKit does it
Tolls in the quoted price Gates on the road route are priced in the estimate and frozen in the quote.
Only tolls crossed on board Crossings are recorded from the GPS track only while the trip is in progress. The rider pays the gates actually crossed.
Toll goes 100% to the driver Tolls are outside the commission and the fleet share. They are repaid to the driver in full.
Its own line on the receipt One line per network ("Free flow SP × 1"). The driver's added tolls are marked as theirs.
Motorcycles pay less New. A gate can say what share of the car price a motorcycle pays. Most Brazilian concessions charge 50%, and some charge nothing.
Free-flow gantries New. A gate can be marked as a free-flow gantry (no booth, billed to the plate).
A passage the map missed New in Brazil. The driver adds it during the trip, up to R$100 per trip. The default name is "Pedágio". The sheet explains free flow and points to the CNH do Brasil app for the price.

Setting it up

Admin → Zones → Draw new zone → Toll gate. Draw a thin shape across the road at the gantry or booth, then fill in:

  • Toll network: the name riders see, e.g. "Free flow BR-101" or "CCR RioSP".
  • Price per crossing: the car price. Use time windows if it varies.
  • Motorcycles pay (% of the car price): 50 at most Brazilian concessions, 0 where motorcycles are exempt. Leave it empty for the car price.
  • Free-flow gantry: switch on for a gantry with no booth.

Markets → Brazil: driver-added tolls are on, with a limit of R$100 per trip (tollReceipts). Change the limit there, or turn it off.

For the code

What Where
Gate rules (twoWheelerBps, freeFlow), lines per vehicle class backend/src/geo/toll-rules.ts (twoWheelerPrice, tollLinesFor)
Pricing by class pricing.service.ts (estimate), dispatch.service.ts (settleTolls): two-wheelers by rides/moto-rules.ts isTwoWheeler
Driver-added tolls geo/toll-receipts.ts (BR default, defaultTollName); rides/toll-receipts.service.ts (returns the market)
Admin zones/TollGateFields.tsx, zones/toll-form.ts
Driver app src/components/TollReceipts.tsx (market example, free-flow hint)

Check before launch. Confirm each concession's motorcycle rule and the free-flow prices with the concessionaire or ANTT and ARTESP. Agree with drivers how a free-flow bill that reaches the plate's owner later is handled when the car belongs to a fleet.

source: docs/brazil-tolls.md (ships identically in the product zip)