US: trip data for regulators (NYC TLC, California PUC)
Built: 2026-11-04.
This page is for US operators and for whoever maintains the code.
US regulators expect ride platforms to hand over trip data:
- New York City's TLC requires high-volume for-hire services to submit a record of every trip. The public HVFHV trip data dictionary describes the layout.
- The California PUC requires TNCs to file annual and quarterly reports. These cover requests accepted and not accepted, accessibility (WAV requests, fulfilment and response times), incidents and complaints, and the hours and miles drivers logged.
Admin → Insights → Regulator reports produces each of these as a CSV for any period of up to 92 days. Reports are kept in two ways:
- Preview downloads the file and keeps nothing.
- File keeps the CSV exactly as it will be sent, with a SHA-256 checksum.
A filed report can be downloaded again as filed. Mark submitted records the portal receipt, upload ID or e-mail date. A report can be marked submitted only once.
In the first week of each month, an hourly job files every report for the month that ended. These files are marked automatically.
Market config regulatorReports (on in the US)
| Field | Meaning |
|---|---|
enabled |
On in the US. |
tlcLicense |
The TLC high-volume licence (HV0003 style). Printed in hvfhs_license_num. |
dispatchingBase |
The base (B03404 style). Printed in dispatching_base_num and originating_base_num. |
feeColumns |
Which regulatory fees go in the TLC bcf, sales_tax and congestion_surcharge columns. Fees are matched by name or authority, ignoring case. The defaults are "Black Car Fund", "sales tax" and "congestion". |
The reports
| Report | Contents |
|---|---|
TLC trip records (tlc_trips) |
One row per completed trip, with the TLC's 24 columns. See below. |
| Requests by day and zone | For each day and pickup zone: requests, accepted, completed, cancelled by the rider, cancelled by the driver, never matched, and the average wait for the car. |
| Accessibility | For each day: WAV, Assist and service-animal requests, how many were completed and unfulfilled, the average and 90th-percentile response in minutes, and refusal reports with how many were confirmed. See accessibility. |
| Incidents and complaints | Each SOS and complaint, with no names: a short reference, when it was reported, its kind, category, priority, status, who reported it (rider, driver or system), the pickup zone, when it was resolved, and the decision. |
| Driver hours and miles | One row per driver: hours online, hours on trips, trips, and trip miles. Each driver appears as a keyed 16-character pseudonym, never by name or phone. The pseudonym is stable, so a driver keeps the same reference across files. |
The TLC trip record
The TLC file has these columns:
- times in local wall time: request, on-scene (the driver's arrival), pickup and drop-off;
trip_miles(GPS track, or the trip's distance) andtrip_timein seconds;base_passenger_fare: what the rider paid, minus tolls, airport fees and regulatory fees;tolls, the three fee columns, andairport_fee;tipsanddriver_pay(driver plus fleet, from the ledger);wav_request_flag(booked as WAV) andwav_match_flag(the car has thewheelchairequipment);- the shared-ride and Access-A-Ride flags, which are always
N.
Zones
PULocationID and DOLocationID come from zone codes. Give each TLC taxi
zone, or each reporting area such as a ZIP code or county, a zone whose number
is its code. The code of the highest-priority zone covering the point is used.
A trip outside every coded zone is reported as 264 (unknown). The other
reports use the same codes.
Delivery
The TLC and the PUC take files through their own portals or SFTP. RideKit prepares, keeps and records each file, and the operator uploads it.
Automatic SFTP upload would need an SFTP client library, which RideKit does not include yet. Adding one needs approval first.
Each regulator's format, columns and deadlines are set by its current rules and can change. Check the latest data dictionary or template with the regulator before you file.
Code
backend/src/compliance/us-regulator-reports.ts:- config and period checks, and last month;
- fee to column, TLC zone, the TLC row;
- CSV writing and checksum.
Spec:
us-regulator-reports.spec.ts.backend/src/compliance/us-regulator-reports.service.ts:- the five reports;
- filing, download and marking a report submitted;
- the monthly job.
Routes are under
/admin/regulator-reports:- preview, file, download and submitted are audited;
- everything needs
report.view.
Migration
1700000196000-RegulatorReportFilesaddsregulator_report_files.Admin:
app/(dashboard)/regulator-reports/page.tsx.