Driver centres: walk in, or book a time
Built: 2026-11-03. Written for operators (Mexico first, any market) and whoever maintains the code.
Uber's Centros de Activación and DiDi's driver centres in Mexico check new drivers' papers and cars in person, and help with problems the app cannot fix. RideKit drivers can now book a time at the operator's centres from the app, and staff mark who came.
Admin → People → Driver centres
+ Driver centre sets:
- the name, address and place (Find on map, or type the latitude and longitude) and a phone number;
- what drivers can come for: documents, car inspection, getting started, help;
- opening hours for each weekday, or closed. A day closing before it opens is refused;
- slot length (10 to 240 minutes) and how many drivers a slot takes;
- Open to bookings: switch it off to close a centre. Visits already booked stay.
Visits lists one centre's day, with each driver's name and phone and what they come for. Staff mark Came or Didn't come, and Undo a mistake. Only a visit due within a day can be marked.
Viewing needs driver.kyc.view; setting up centres and marking visits
needs driver.verify. Changes and marks are in the audit log.
In the driver app
Menu → Driver centres:
- the open centres, nearest first, with distance and what each offers;
- pick one, then what they need, a day (closed days greyed) and a free time, shown in the centre's own time;
- Book this time. The visit then sits on top with directions, a call button and Cancel visit.
A driver holds one upcoming visit at a time. The day before (or right away, if it is sooner) they get a notification in their language: "Your visit to Centro Polanco: see you Wed 4 Nov, 10:00. Bring your documents…".
Rules the server keeps
- Times are slots of the centre's own hours in the market's timezone. A time between slots, in the past, less than 30 minutes away or more than 14 days ahead is refused.
- A full slot is refused. Two drivers taking the last place at once: one gets it, the other is told it just filled up (the centre row is locked while booking).
- Only the driver who booked can cancel, and only before it starts.
Code
backend/src/drivers/driver-hubs.ts: hours, slots, the booking window (no I/O);common/market-time.ts:marketWallTimeToUtc;drivers/driver-hubs.service.ts:/api/driver/hubs…for the app;/api/admin/driver-hubs…for admin;- the reminder job, with
POST /api/admin/driver-hubs/jobs/remindto run it now;
- migration
1700000162000-DriverHubs; - driver app:
app/(app)/hubs.tsx; - admin:
app/(dashboard)/driver-hubs/page.tsx.