EV share and electric-only rides
Built: 2026-11-02. For the operator in India (and any market with EV rules), and for whoever maintains the code.
Indian states are pushing ride-hailing fleets to electric:
- Delhi. The Aggregator & DSP Scheme 2023 asks for 100% electric fleets by
- The state is revising the deadlines.
- Maharashtra. Bike taxis must be electric, with the full switch by July
This feature does three things, all optional:
- it measures the share of electric vehicles against each state's target;
- it records each car's fuel in all three apps;
- it lets riders ask for an electric car.
Enforcement, meaning only EVs may take a ride type in a city, already exists:
typeRules.electricOnly on a region (docs/admin-guide/).
A state's target (Admin → Zones → a region)
The region form has an EV target section:
- Target. A whole percentage from 1 to 100.
- By. A date, YYYY-MM-DD.
- Applies to. Every ride type, or one type (the bike taxis).
The zone list shows it as a chip, for example "EV 100% by 1/1/2030".
The report (Admin → Reports → EV share against state targets)
| Row | What it counts |
|---|---|
| All vehicles | Every car in service |
| Each region | The cars that completed trips starting in the region in the last 30 days (the target's ride type only, if it names one), and the share of those trips made in an EV |
| Each fleet | The fleet's cars in service |
Status for a region with a target:
- target met;
- behind, with the days left;
- past the date and not met.
A car whose fuel isn't recorded counts as NOT electric. A target is only met by cars known to be electric, never by a guess. The unrecorded cars are also shown in their own column, as the work left to do.
Fuel per car
| App | Where |
|---|---|
| Driver app | Add vehicle has the fuel chips. This already existed. |
| Partner app | Add vehicle and Edit vehicle have fuel chips (petrol, diesel, CNG, LPG, hybrid, electric). Vehicles shows the fleet's share ("50% electric (1 of 2)") and "Fuel not recorded: N". |
| Admin | The vehicle records card. This already existed. |
Electric only (riders)
Turning it on. Admin → Markets → a market → Pricing → Electric only. It is off by default: in a market with few EVs it would only make riders wait.
When it is on:
- the rider's confirm screen has an Electric only switch;
- the price is the same;
- the ride is offered only to drivers whose car is recorded as electric
(
rides.ev_only, the same filter astypeRules.electricOnly); - the driver's offer shows "⚡ Electric only".
Where it is off, the booking is refused with ev_only_unavailable, and
the app says so in the rider's language.
Code
| Piece | Where |
|---|---|
| Share and status (pure) | backend/src/fleet/ev-share.ts |
| Report | fleet/ev-share.service.ts, GET /reports/ev-share?days=30 (report.view) |
| Region rule | geo/region-rules.ts (evTarget) |
| Electric only | rides/ev-rides-config.ts; rides.service.ts (booking); dispatch.service.ts (filter); market config.evRides; branding evRides |
| Migration | 1700000116000-EvOnlyRides (rides.ev_only) |
| Admin | components/reports/EvShareCard.tsx; zones/RegionFields.tsx; Markets Pricing tab |
| Partner app | src/components/FuelPicker.tsx; app/(app)/vehicles.tsx |
| Rider and driver apps | app/(app)/confirm.tsx; OfferSheet.tsx |
Not built
- Charging stations and battery range. There is no charging map or battery-range check on long trips.
- An EV ride type. There is no "EV" ride type with its own price (an
operator can create one as an ordinary type with
electricOnly).