RideKit
Docs/Reference/Clean trips: NYC Green Rides and California Clean Miles

Clean trips: NYC Green Rides and California Clean Miles

Built: 2026-11-04.

This is for US operators, and for whoever maintains the code.

What the rules ask

Programme Measure Targets (defaults)
NYC Green Rides (TLC) Share of high-volume trips made in a zero-emission vehicle or a wheelchair-accessible vehicle 2024 5% · 2025 15% · 2026 25% · 2027 40% · 2028 60% · 2029 80% · 2030 100%
California Clean Miles Standard (CARB, SB 1014), electric miles Share of miles driven electric (eVMT %) 2023 2% · 2024 4% · 2025 13% · 2026 22% · 2027 33% · 2028 50% · 2029 70% · 2030 90%
California Clean Miles Standard, emissions Grams of CO2 per passenger mile 2023 252 · 2024 237 · 2025 207 · 2026 177 · 2027 142 · 2028 101 · 2029 50 · 2030 0

The page

Admin → Insights → Clean trips scores a year's completed passenger trips. Its controls:

  • Year and Area. The area is optional: a Zones region such as a city or county.
  • Download CSV: one row per month and one for the year. Each download is audited.

The page shows these sections:

  • Green Rides. The share of trips in a ZEV or a WAV, against the year's target. A trip that is both counts once. The card also shows total trips, electric trips and WAV trips.

  • Clean Miles. Two figures, each against its target:

    • the electric-miles share;
    • grams of CO2 per passenger mile, where lower is better.

    Each figure gets one of these verdicts:

    Verdict When
    On track The figure meets the target.
    Behind The figure misses the target.
    No target The year has no target.
    No trips The year has no trips to score.
  • By month. Trips, ZEV-or-WAV trips and share, miles, electric miles, and g CO2 per mile.

  • Trips by fuel.

  • A warning for trips with no fuel recorded. These trips count as petrol, so record each car's fuel type under Vehicles.

How each figure is worked out

Input Source
Electric vehicles.fuel_type = 'electric' for the car on the trip (rides.vehicle_id).
WAV The trip was booked as a WAV (rides.accessible_kind), or its car carries a wheelchair ramp (vehicles.equipment).
Miles The trip's own distance, from pickup to drop-off: the GPS-travelled metres, or the quoted distance if no GPS distance was recorded.
CO2 Miles × grams per mile for the car's fuel. The defaults are petrol 355, diesel 380, hybrid 220, CNG 300, LPG 320 and electric 0, all in grams per mile.
Passenger miles One passenger per trip.

What the filings add. CARB's figures also count the miles driven to the pickup and between trips. The platform does not record those per trip, so check the filed numbers against your telematics. Every target and every grams-per-mile figure is a setting (config.cleanTrips). Confirm them with the current TLC and CARB rules.

Settings

Market config cleanTrips, on in the US:

{
  "enabled": true,
  "greenRidesTargets": { "2026": 25 },
  "evmtTargets": { "2026": 22 },
  "ghgTargets": { "2026": 177 },
  "gramsPerMile": { "petrol": 355 }
}

A target stands until a later year replaces it.

Code

  • backend/src/compliance/clean-trips.ts:

    • config;
    • score, which turns trips into the figures;
    • targetFor, which finds the target for a year;
    • verdict, which compares a figure with its target.

    Spec: clean-trips.spec.ts.

  • backend/src/compliance/clean-trips.service.ts: the year query, filtered by area if one is chosen, and the CSV. Routes are /admin/clean-trips and /admin/clean-trips/report.csv, both needing the report.view permission.

  • Admin: app/(dashboard)/clean-trips/page.tsx.

source: docs/us-clean-trips.md (ships identically in the product zip)