Brazil: moto rides (99Moto, Uber Moto)
Built: 2026-11-03. Written for operators in Brazil and whoever maintains the code.
Motorcycle rides run in most Brazilian cities. Some cities fight them, so they can be switched off per city (Admin → Zones → a region → Ride types not offered here, with a reason and a date; logged). When they run, RideKit now applies the national rules (CTB; Lei 12.009/2009) by default in Brazil.
The rider
- Helmet: on the booking screen the rider confirms they will wear the helmet the driver brings. A booking without it is refused.
- 18 or over: booking a motorcycle needs a date of birth on file.
- Without one, the app sends the rider to their profile to add it.
- Under 18, the booking is refused: "Motorcycle rides are for riders 18 and over. Choose a car instead."
- Cars are not affected.
The driver
- CNH category A (or AB, AC, AD, AE): read from the category the reviewer recorded on the CNH. With a category-B CNH, going online on a motorcycle is refused and the driver is told which category is needed.
- A passenger helmet on the motorcycle's equipment.
- A helmet selfie each day: before riding, the driver takes a selfie
wearing the helmet, visor up. The app opens the camera itself when going
online is refused for it.
- With AWS Rekognition configured (Admin → Providers), the face is compared with the driver's photo, and the helmet is checked (DetectProtectiveEquipment, head cover).
- No helmet seen: the selfie fails.
- Not checkable: it goes to Face checks for a person, marked "Helmet selfie". While it waits, the driver may ride, as the market's face-check setting allows.
- The selfie counts for 24 hours.
Admin
Markets → Brazil, motorcycle settings:
| Setting | Brazil default |
|---|---|
| Helmet on motorcycle rides | On |
| Youngest rider | 18 |
| Licence categories for drivers | A, AB, AC, AD, AE |
| Helmet selfie each day | On |
Mexico keeps only the helmet rule. Elsewhere all are off until set.
Code
backend/src/rides/moto-rules.ts: the rules,ageOn;rides/rides.service.ts: rider age and helmet at booking;drivers/drivers.service.ts: CNH category and helmet selfie at going online;drivers/face-check.service.ts: helmet mode,assertHelmetSelfie;face-match.provider.ts:detectHelmet;- migration
1700000166000-HelmetSelfie; - driver app:
face-check.tsx?helmet=1; - rider app: messages in
confirm.tsx; - admin: the markets moto card and the face-check list.
source: docs/brazil-moto-rides.md (ships identically in the product zip)