Cab Platform — Complete Requirements

Base PRD + Phase 1 Add-Ons (★ New Features)

Rider Mobile Application

Flutter-based mobile app for customers

Base PRD Features
★ Phase 1 Add-Ons (New)

Authentication & Profile

Login, registration, and user management

FeatureTechnical DetailsPlain English
Phone OTP LoginBaseFirebase Phone Auth with MSG91 fallback. 6-digit OTP, 3 attempts, 5-min expiry.Login with mobile number. App sends code to your phone.
Social LoginBaseGoogle & Apple Sign-In via Firebase Auth. Token exchange with backend JWT.Quick login with Google or Apple. One-tap sign-in.
Profile ManagementBaseName, email, photo (200KB), home/work address with Google Places API.Edit name, photo. Save home/office addresses for quick booking.

Booking & Rides

Core ride booking and management

FeatureTechnical DetailsPlain English
Live BookingBaseReal-time matching via Socket.io. Nearest 5 drivers notified, first-accept wins.Book now. App finds nearest drivers, assigns first acceptor.
Scheduled RidesBaseRedis job queue for future rides. 15-min pre-notification to driver.Book for later. Driver gets reminder 15 minutes before.
Fare EstimationBaseDistance matrix + base fare + per-km + time charges + surge multiplier.See price before booking based on distance, time, demand.
Multiple Vehicle CategoriesBaseDynamic config: Mini, Sedan, SUV with icons and pricing.Choose vehicle: Mini (cheap), Sedan (comfort), SUV (space).
Bike as Vehicle Category★ NewNEW: Bike category with fare rules, bike documents, icon assets.NEW: Choose Bike for quick solo travel. Lower cost than cars.
Multiple StopsBaseUp to 3 waypoints with route optimization via Google Directions API.Add up to 3 stops — pick up friend, drop laundry, then destination.
Trip OTP VerificationBase4-digit OTP at ride start. Driver enters to confirm pickup.Driver asks for 4-digit code at pickup for safety.
Live Driver TrackingBaseWebSocket real-time location every 3 seconds. Mapbox/Google Maps with ETA.Watch driver moving on map. See exact arrival time.
Book for Someone Else + SMS★ NewNEW: Enter another person's phone. SMS sent with ride details and tracking link.NEW: Book for family/friend. They get SMS with driver info and tracking.
Duplicate Location Validation★ NewNEW: Reject booking if pickup/drop within 50m radius.NEW: Prevents accidental same-location bookings.

Outstation & Rental

Long-distance and hourly bookings

FeatureTechnical DetailsPlain English
Outstation BookingBaseRound-trip and one-way. Driver return fare calculation.Book rides to other cities. Includes driver's return cost.
Outstation PauseBaseTrip pause/resume with timer. Per-hour waiting charges.Pause trip for stops. Driver waits, charges apply after free time.
Car Rental (Hourly)Base4/8/12-hour packages with km limits. Overtime and extra km charges.Rent car with driver: 4hr shopping, 8hr meetings, 12hr events.
Return Trip SchedulingBaseBook return within 7 days. Same driver preference if available.Book return journey upfront. Get same driver if available.

Payments & Wallet

Multiple payment methods and financial management

FeatureTechnical DetailsPlain English
Multiple Payment OptionsBaseCash, Card (Razorpay), UPI, In-app Wallet.Pay cash to driver, card via app, UPI, or wallet.
In-App WalletBaseTop-up via Razorpay. Auto-deduct for rides. Transaction history.Add money to wallet. Auto-used for rides. Full history.
Saved Payment MethodsBaseTokenized card storage (PCI-DSS). UPI ID save. One-tap payment.Save cards and UPI. Pay with one tap next time.
Coupons & Promo CodesBasePercentage and flat discounts. Expiry dates, usage limits. Auto-apply best coupon.Apply discount codes. App uses best coupon automatically.
Post-Trip TipBaseOptional tip after ride. Fixed (20/50/100) or custom amounts.Tip driver after ride if service was good.
Fare BreakdownBaseItemized: base fare, distance, time, tolls, taxes, discounts, surge.Clear receipt: base + distance + waiting + tolls - discounts.
Meterless/Walk-in RideBaseStreet hail converted to app ride. Driver code to link trip.Hail cab on street, enter driver's code to track and get receipt.

Safety & Support

Emergency features and customer assistance

FeatureTechnical DetailsPlain English
SOS Emergency ButtonBaseOne-tap alert to emergency contacts with live location.Red button for emergencies. Alerts contacts with location.
Share Live TripBaseShareable link with live tracking. Expires 30 min after trip.Share trip with family. They see your location without app.
Call MaskingBaseVirtual numbers via Exotel/Twillio. Proxy routing, real numbers hidden.Call driver without sharing real phone. Both see proxy number.
In-App ChatBasePre-set messages, image sharing for location confirmation.Quick messages to driver. Send "I'm here" or share photo.
Rider Support ChatBaseLive chat with support agents. Auto-routing by issue type.Chat with customer support in app. Get help with issues.
Ride History & ReceiptsBasePast rides with details. PDF receipt download. Email option.See past rides. Download receipts for expense reports.
Rate & Review DriverBase1-5 stars with tags (Clean car, Good driving). Anonymous.Rate driver 1-5 stars. Tags for specific feedback.
Investigation Access★ NewNEW: Support sees full ride timeline, payments, location, chat for disputes.NEW: When you report issue, support sees complete trip details.

Driver Mobile Application

Flutter-based app for drivers

Authentication & Onboarding

Driver registration and verification

FeatureTechnical DetailsPlain English
Driver RegistrationBasePhone OTP + progressive onboarding: personal, vehicle, documents, bank.Sign up step by step: info, vehicle, documents, bank.
Document UploadBaseLicense, RC, Insurance, Permit, PUC. OCR expiry extraction.Upload documents. App checks quality and reads expiry dates.
Bike Document Support★ NewNEW: Bike RC, Insurance, PUC. Separate validation for two-wheelers.NEW: Bike-specific document flow. Different rules than cars.
Background VerificationBaseManual admin approval. Document validity check.Company verifies documents before you can start driving.
Bank Account SetupBaseAccount number, IFSC validation. Penny drop verification.Add bank for weekly payouts. Test transfer confirms account.

Ride Management

Accepting and completing trips

FeatureTechnical DetailsPlain English
Online/Offline ToggleBaseControls availability. Location broadcast when online.Go online to receive rides. Offline when done or on break.
Ride Request PopupBase15-second countdown. Shows pickup, drop, fare estimate.Pop-up with ride details. 15 seconds to accept or decline.
In-App NavigationBaseGoogle Maps/Mapbox with turn-by-turn. Traffic-aware routes.Built-in navigation to pickup and destination. Shows traffic.
Trip Stage ManagementBaseArrived → Start → End flow. GPS validates location.Tap Arrived at pickup, Start when rider boards, End at destination.
Trip OTP VerificationBaseDriver enters rider's 4-digit OTP to confirm pickup.Ask rider for code before starting. Ensures correct pickup.
Battery % at Ride End★ NewNEW: Input battery percentage before marking complete. Shown in admin dashboard.NEW: Enter battery % when ending ride. For EV fleet tracking.
Vehicle Backside Photo★ NewNEW: Capture rear vehicle photo before End Ride. Stored with trip ID.NEW: Take photo of vehicle back before ending ride. For damage proof.

Earnings & Payments

Income tracking and cash management

FeatureTechnical DetailsPlain English
Earnings DashboardBaseDaily, weekly, monthly breakdown. Trip count, online hours.See earnings today, this week, this month. Charts and graphs.
Trip HistoryBaseAll completed trips with route, fare, rider rating.Review past trips. See route taken and what rider rated you.
Cash Collection TrackingBaseLog of cash rides. Pending submission amount.Track cash payments from riders. See amount to deposit.
Cash Limit Enforcement★ NewNEW: Max ₹2,000 (local) / ₹5,000 (outstation). Deposit within 24hrs or blocked.NEW: Keep up to ₹2k/₅k cash. Deposit excess in 24hrs or blocked from new rides.
Weekly PayoutBaseAuto bank transfer every Tuesday. Trip-wise statement.Earnings sent to bank every Tuesday. Detailed statement.
Instant PayoutBaseRequest early payout with small fee. RazorpayX instant transfer.Need money early? Request instant payout for small fee.

Status & Performance

Attendance and compliance tracking

FeatureTechnical DetailsPlain English
Attendance Clock-In/Out★ NewNEW: Clock in at shift start, out at end. Tracks hours and breaks. Admin dashboard reports.NEW: Tap Start/End Shift. Company tracks your working hours.
Rating & PerformanceBaseOverall rating, category breakdown. Low rating alerts.See your average rating. Breakdown of what riders liked.
Completion RateBaseAccepted vs completed ratio. Cancellation tracking.Track completed vs cancelled rides. High cancellation affects priority.
Document Expiry AlertsBase30/7/1 day warnings. Upload new docs in app.Get alerts before documents expire. Upload new ones directly.
Driver Support ChatBaseLive chat with fleet manager. Quick issue selection.Chat with company for help. Quick options for common problems.

Backend APIs & Services

NestJS-based backend infrastructure

Core Services

Authentication and user management

FeatureTechnical DetailsPlain English
Authentication ServiceBaseJWT auth with refresh tokens. Role-based access. Phone OTP via Firebase + MSG91.Secure login for all users. Different permissions for riders, drivers, staff.
Rider Management APIBaseProfile CRUD, address management, favorites. GDPR-compliant.Store rider info securely. Handle saved addresses and preferences.
Driver Management APIBaseOnboarding, documents, status tracking. Payout accounts.Complete driver lifecycle: signup, documents, verification, payments.
Bike Category Management★ NewNEW: Separate bike category with distinct fare rules and validation.NEW: Manage bike type with its own pricing and requirements.

Ride & Booking Engine

Matching, pricing, and tracking

FeatureTechnical DetailsPlain English
Ride Matching EngineBaseRedis + Socket.io real-time matching. Nearest driver algorithm. 60-sec timeout.Find nearest driver in real-time. Notify closest drivers, first-accept wins.
Dynamic Pricing (Surge)BaseDemand-based multiplier. Factors: availability, requests, weather, events.Higher prices when busy. Considers driver count, demand, weather.
Scheduled Ride QueueBaseRedis job queue for future rides. 15-min driver notification.Store advance bookings. Remind drivers before scheduled time.
Live Location TrackingBaseWebSocket GPS updates every 3 seconds. Geospatial indexing.Track driver location real-time. Store 30-day history.
Duplicate Location Validation★ NewNEW: Reject if pickup/drop within 50m. Haversine distance calculation.NEW: Prevent bookings where pickup and drop are too close together.
Book-for-Someone SMS★ NewNEW: Trigger SMS to alternative number on booking with ride details and tracking link.NEW: When booking for another person, they get SMS with all details.

Payment & Wallet

Payment processing and financial operations

FeatureTechnical DetailsPlain English
Razorpay IntegrationBaseCard, UPI, wallets, net banking. Webhook handling. Refund processing.Process all digital payments securely. Handle cards, UPI, refunds.
In-App Wallet SystemBaseWallet top-up, auto-deduct, transaction history. Ledger accounting.Digital wallet for riders. Add money, auto-payment, full history.
Cash Payment LoggingBaseMark rides as cash-paid. Track driver's cash collection liability.Track cash payments to drivers. Monitor how much each driver owes.
Cash Limit Tracking★ NewNEW: Track cumulative cash per driver. Enforce limits. Soft-block if deadline missed. Admin override API.NEW: Monitor driver cash holdings. Block new rides if over limit and not deposited.
Driver Payout SystemBaseWeekly automated payout. RazorpayX bulk transfer. Failed payout retry.Calculate and send weekly earnings to driver banks. Handle failed transfers.
Coupon & Promo SystemBaseCreate promo codes with expiry, usage limits. Auto-apply logic.Create and manage discount codes. Set expiry dates and usage limits.

Admin Panel

React-based web dashboard for operations and fleet management

Operations Management

Real-time tracking and dispute resolution

FeatureTechnical DetailsPlain English
Live Tracking DashboardBaseReal-time map showing all active drivers and rides. Filter by city, status, vehicle type.See all drivers and rides happening now on a map. Filter by city.
Active Drivers ListBaseTabular view with location, status (idle/on-ride), current ride, earnings today.List view of working drivers. See who's busy, who's free, daily earnings.
EV Battery Monitoring★ NewNEW: Display battery % from last ride. Color-coded: Green (>50%), Yellow (20-50%), Red (<20%).NEW: See electric vehicle battery levels. Identify which drivers need charging.
Driver Attendance Dashboard★ NewNEW: View clock-in/out times. Online hours with break deductions. Daily/weekly/monthly reports.NEW: Track when drivers start and end shifts. See total working hours, breaks.
Ride Status MonitorBaseList of all rides with status, driver, rider, fare. Search by ID, phone, date.Monitor every ride. Search by phone or ride ID. Cancel problem rides.
Issue & ComplaintsBaseList of complaints categorized by type. Assignment to agents. Status tracking.Track all complaints. Assign to staff, monitor resolution, see history.
Investigation Drilldown★ NewNEW: Deep-dive for disputes. Timeline of all events, payments, GPS trail, chat history. Export PDF.NEW: Investigate thoroughly. See complete ride story: every stop, payment, message. Export report.
SOS Alert MonitorBaseReal-time SOS alerts with location. Auto-notification to emergency contacts.Immediate alert when rider presses emergency button. See location, call rider.

Fleet & Driver Management

Driver onboarding and performance tracking

FeatureTechnical DetailsPlain English
Driver Approval WorkflowBaseQueue of pending applications. Document viewer. Approve/Reject with reason.Review new driver applications. Check documents, approve or reject.
Document VerificationBaseView uploaded documents. OCR-extracted expiry dates. Expiry alerts dashboard.Verify driver documents. See expiry dates, send renewal reminders.
Driver Performance MetricsBaseRating trends, completion rate, cancellation rate, earnings. Compare time periods.See driver performance. Who's highly rated, who cancels too much.
Driver BlockingBaseSoft block (no new rides) vs hard block (account disabled). Reason logging.Block problematic drivers temporarily or permanently. Log reasons.
Cash Limit Override★ NewNEW: View drivers exceeding limits. Manual unblock after deposit. Trusted driver whitelist.NEW: Unlock drivers who deposited late. Mark trusted drivers for auto-approve.
Payout ManagementBaseWeekly batch processing. Failed payout retry. Instant payout approval.Process weekly payments. Handle failed transfers, approve early payouts.

Configuration & Settings

Service configuration and pricing

FeatureTechnical DetailsPlain English
City & Zone ManagementBaseAdd/edit cities. Define service zones with geo-fencing. Operating hours per zone.Manage cities where you operate. Draw service boundaries. Set operating hours.
Vehicle Category ConfigBaseCreate/edit vehicle types. Upload icons, set base fare, per-km rate, min/max fare.Configure vehicle types. Set prices for Mini, Sedan, SUV, Bike. Upload icons.
Surge Pricing RulesBaseCreate surge zones on map. Set multiplier thresholds. Time-based rules. Manual override.Set high-demand zones. Increase prices when busy. Override manually.
Fare & Commission RulesBasePlatform fee, booking fee, tax settings. Commission % per category. City-wise config.Set company fees and driver commission. Different rates for cities and vehicle types.
Coupon ManagementBaseCreate promo codes. Set discount type, value, min ride value, max discount, usage limits.Create discount codes. Set how much off, minimum order, who can use, expiry.
CMS & AnnouncementsBaseEdit help articles, FAQs, Terms. Announcement banners. Push notification composer.Edit app content. Send announcements to all users. Compose push notifications.