RideKit
Docs/Reference/Licensed taxis: a "Taxi" ride type for taxi franchises

Licensed taxis: a "Taxi" ride type for taxi franchises

Built: 2026-11-02. Written for operators and for whoever maintains the code.

Dubai's RTA wants 80% of taxi trips booked through apps (45% were in 2025). The taxis belong to franchises that put their cars on several apps: Dubai Taxi's 6,200 cars on Bolt, Hala with Careem, and Yango in Abu Dhabi. With this feature a RideKit operator can carry licensed taxis:

  • a Taxi ride type bound to the taxi franchises whose cars alone serve it;
  • the taxi meter is the fare. The driver types it at the end, or the franchise's meter system reports it, and it is checked against the app's own computation of the regulated tariff;
  • a report per franchise, and a franchise login (the partner app).

Setting it up

  1. Add each taxi franchise as a fleet partner (Admin → Fleet Partners). Add its trade licence and operator permit, and verify it. Its taxis are the franchise's vehicles, and its drivers are its members. The franchise signs in to the partner app like any fleet.
  2. Make the ride type (Admin → Pricing → + Vehicle Type, e.g. "Taxi"). Price it with the regulated tariff: the region's fare card in Admin → Zones (see docs/regulated-tariff.md). Then, under Licensed taxi:
    • Taxi meter at the end of each trip: on;
    • Meter allowance above the app's fare: 10% by default;
    • Taxi franchises that serve this type: tick the franchises.
  3. The franchise's cars are given this ride type and the taxi plate category (the vehicle form, or the fleet console).
  4. Optional: a connected meter (Admin → Providers → Taxi meter). Enter the meter system's API URL and key. See below.

What happens

  • Dispatch. A Taxi ride is offered only to drivers in a car that belongs to one of the ticked franchises. Every other car is skipped.

  • Going online. A driver in a car of the Taxi type that is not a ticked franchise's car is refused:

    • "This ride type is for taxis of its licensed franchises only";
    • in the UAE, the company rules see it first ("This car's plate cannot be used for app rides here").
  • Taxi plates in the UAE. App cars there must carry limousine plates (docs/fleet-companies.md). A taxi plate is allowed for a franchise's taxi on the Taxi type it is bound to, and for no other car.

  • At the drop-off, the driver app asks for the taxi meter fare, showing the quoted fare as a guide. The trip completes with it:

    The meter shows Charged Flagged
    Within the allowance of the app's fare (e.g. 12.94 → up to 14.23) the meter no
    More than the allowance above the app's fare yes: "above"
    More than the allowance below the meter (the rider pays less) yes: "below"

    If the trip is completed without a reading, the server refuses until one is entered.

  • Receipts. The rider's receipt shows the quoted lines plus a Taxi meter adjustment line, so it adds up to what was charged. The admin trip page shows the same line.

Connected meter (optional)

A franchise whose meters report to a back office can send the fare itself. RideKit makes one call when the driver completes the trip:

GET {baseUrl}/fare?plate=D12345&from=2026-11-02T14:14:54Z&to=2026-11-02T14:31:10Z&ref={rideId}
Authorization: Bearer {apiKey}
→ 200 { "fareMinor": "2350" }
  • The device's reading is used ahead of the driver's.
  • When the system is not configured, does not answer within 5 seconds, or finds no trip, the driver's reading is used instead. A trip is never blocked on the device.
  • A vendor with a different API shape needs a small adapter in fleet/taxi-meter.provider.ts.

Reports

Admin → Reports → Licensed taxis by franchise, for the selected dates. For each franchise it shows:

  • its taxis and its completed trips;
  • the fares (before discounts);
  • meter readings that matched;
  • meter readings that were flagged, and how many came from the meter system.

Below it, Meter readings to check lists every flagged trip with:

  • the taxi and the driver;
  • the meter reading, the app's fare, and what was charged;
  • whether the reading was typed by the driver or read from the meter system.

Each trip links to its trip page.

The franchise sees its trips in the partner app. A flagged trip shows a "Meter flagged" badge in the list, and the trip page has a Taxi meter card: what the meter showed, the app's fare, and the outcome.

A ride now records the car it was completed in (rides.vehicle_id). A franchise's trips stay its taxis' trips after a driver changes cars.

Confirm locally. RTA sets the taxi tariff, how fares are shown and taken, and the e-hail rules franchises work under. Agree the allowance and the meter-system integration with each franchise and the authority.

Brazil: the taxímetro and the Condutax

Added 2026-11-03. 99 began as a taxi app and still sells 99Táxi, and Uber Táxi runs in São Paulo. Both use city-accredited taxi drivers and the municipal fare table. The same Taxi ride type serves Brazil:

  • The city's fare table. In Admin → Zones → the city's region → the Taxi type → Fare card, press Fill São Paulo taxi fares. This fills the table in force since 11 August 2025:

    Item Value
    Flag-drop (bandeirada) R$ 6,55
    Per km, bandeira 1 R$ 4,80
    Per km, bandeira 2 R$ 6,24 (Monday–Saturday 20:00–06:00, and all day on Sundays and holidays)
    Waiting about R$ 0,93 a minute (R$ 55,50 an hour stopped)
    Surge none (regulated)
    • A tariff window can now set its own per-km rate, labelled Bandeira 2.
    • The card lists holidays, which are priced as a Sunday.
    • The rider's confirm screen explains bandeira 2 when it applies.
    • The meter reading still settles each trip, against this estimate.
  • The driver's taxi licence. In Brazil, a driver can go online in a Taxi car only with an approved, current driver permit document. That is São Paulo's Condutax (Rio's alvará de autorização). Otherwise the app says: "Upload your city's taxi driver licence (Condutax) in Documents to drive a taxi". The admin calls this document "Taxi driver licence (Condutax / alvará)" in Brazil.

Confirm locally. Check the city's current table and list the year's holidays, municipal ones included (São Paulo's 25 January). Other cities publish their own tables. Bus and taxi lanes are not part of the routing.

Not covered

  • A specific meter vendor's API. One generic contract is supported, above.
  • RTA's own e-hail reporting feed. Use the report's figures.
  • Street-hail trips. Only trips booked through the app are recorded.

For maintainers

Area Files
Meter rules (pure) backend/src/fleet/taxi-meter.ts: meterSettlement, parseMeterReading, taxiRulesOf
Settlement rides/dispatch.service.ts complete(): meter applied before discounts; meter_reading_required; rides.meter_*, fareBreakdown.meterAdjustmentMinor, rides.vehicle_id
Connected meter fleet/taxi-meter.provider.ts, credential taxi_meter (baseUrl, apiKey)
Binding vehicle_type_franchises; CatalogService.bindFranchises; franchiseIds on the vehicle-type API
Dispatch filter DriversService.findNearby (vehicle org must be a bound franchise)
Go-online DriversService.goOnline (taxi_franchise_vehicle); fleet/fleet-model.ts licensedTaxi taxi-plate exception
Report fleet/taxi-report.service.ts, GET /admin/reports/taxi-franchises
Storage Migration 1700000137000-TaxiFranchises.ts
Driver app src/components/MeterSheet.tsx, app/(app)/trip.tsx
Admin Pricing → Licensed taxi; components/reports/TaxiFranchisesCard.tsx; trip line lineMeter
Rider / partner receipt line fareMeterAdjust; partner trip Taxi meter card and badge
Tests fleet/taxi-meter.spec.ts, rides/fare-settlement.spec.ts, fleet/fleet-model.spec.ts
source: docs/taxi-franchises.md (ships identically in the product zip)