RIDE BOOKING • DRIVER OPERATIONS & ADMINISTRATION
TurnTaxi
A three-application transport platform connecting passenger booking, driver fare offers, live tracking, and shared ride progress with driver approval, subscription administration, targeted notifications, and activity reporting.
Visit project
THE PRODUCT
A ride for the passenger.
A workspace for the driver.
Turn Taxi is a transport platform for a Sri Lankan tuk-tuk service, connecting passengers, drivers, and administrators through two React Native mobile applications and a React web dashboard. It combines map-based ride discovery, driver fare offers, live location tracking, onboarding, and operational administration.
The product work spans pickup and destination selection, real-time driver visibility, competitive offers, synchronized ride progress, document-based driver approval, subscription management, targeted notifications, and reporting. English, Sinhala, and Tamil resources support the mobile experiences.
THE RIDE WORKFLOW
From choosing a pickup to completing the ride.
- 01
Request
Choose pickup and destination on the map.
- 02
Compare
Review fare offers from available drivers.
- 03
Ride
Accept an offer and follow shared ride progress.
- 04
Rate
Complete the journey and leave driver feedback.
INSIDE THE PRODUCT
The experience, and the engineering behind it.
Explore each area for the full implementation story.
Passenger experience
Give passengers a clear way to book.
Map-based requests, comparable fare offers, and three-language resources connect discovery to booking.
Map-based ride requestsPlace search, pickup adjustment, route metrics, and structured requests
The passenger home screen combines a map with pickup and destination selection. Place autocomplete and detail lookup provide searchable addresses, while device location initializes pickup details. Passengers can reposition the pickup marker and reverse-geocode the chosen coordinates. Map directions display route distance and duration.
Zustand stores hold selected locations and route metrics, resetting the metrics when location selections change. Firestore ride requests capture passenger identity, pickup, drop-off, optional notes, and route information so drivers receive the trip context needed to evaluate an offer.
Competitive fare offersLive quotations, price comparison, and transactional acceptance
Drivers see incoming ride details and enter a fare, validated as a positive number. Each quotation is stored in the ride’s offer collection, and drivers can withdraw it by deleting their offer record. The passenger app subscribes to changes and sorts offers by price, showing offer counts, driver names, and quoted fares.
Accepting an offer uses a Firestore transaction that checks the ride is still searching and the selected offer exists. It records the selected driver, quoted price, and acceptance timestamp. Once the ride leaves the searching state, a second acceptance cannot pass that transaction’s state check.
English, Sinhala & TamilReusable translation resources and saved language preferences
Both mobile applications include English, Sinhala, and Tamil translation resources through i18next and react-i18next. Language switches persist preferences in AsyncStorage, with English fallback behavior and driver-side normalization of supported locale codes.
Translated labels and messages appear across booking, onboarding, ride progress, driver tracking, and shared components. The implementation provides reusable localization resources; complete translation coverage was not established by the supplied review.
Driver operations
Support the driver from onboarding to arrival.
Document submission, availability controls, location publishing, and ride actions bring the driver workflow together.
Driver registration & approvalGoogle sign-in, identity details, vehicle records, and document uploads
Both mobile apps integrate native Google Sign-In with Firebase Authentication and onboarding for contact details and profile completion. Drivers move through terms, privacy, contact details, profile submission, and approval stages, including pending-approval and rejection-related states.
Driver submissions collect identity details, Sri Lankan NIC numbers, vehicle information, and supporting photographs. NIC and registration inputs have format validation. Profile and vehicle photographs and both sides of driving licences are uploaded to Firebase Storage with Expo Image Picker. Contact-number entry does not establish SMS ownership verification.
Availability & background locationPermission handling, tracking controls, heartbeats, and throttled writes
Online and offline controls persist the driver’s availability intent locally. Tracking requests foreground and background location permissions before registering an Expo Task Manager background task. High-accuracy updates use time and distance intervals, with Android foreground-service notification text for ongoing tracking.
A shared repository function throttles writes of coordinates, speed, heading, online state, and heartbeat timestamps to Firebase Realtime Database. The stop workflow ends location updates and marks the driver offline. The driver interface also observes subscription changes and stops tracking when expiry is detected. Physical-device background behavior requires separate verification.
Synchronized ride progressShared searching, arrival, journey, completion, and cancellation states
Passenger and driver snapshot subscriptions observe the same ride document through searching, accepted, arrived, started, completed, and cancelled states. Drivers have controls for arrival, journey start, and completion; passenger cancellation and completion actions appear in their supported interface states.
Both experiences display ride status, locations, route information, and fare details. Accepted drivers are routed into the active-ride screen, and completion moves passengers toward driver rating. Shared records let each application react to progress without repeated manual refreshes.
Dispatch & automation
Coordinate requests, eligibility, and updates.
Nearby-driver selection, subscription expiry checks, and notifications connect mobile activity to backend events.
Nearby-driver dispatchFresh online positions, distance ranking, and one candidate batch
The passenger app subscribes to online positions in Realtime Database, displays driver markers, and supports driver selection and detail retrieval with pickup-distance information. A Firestore creation trigger handles new ride requests, filtering live driver records by online state, available coordinates, and heartbeat freshness.
Drivers are ranked by Haversine distance from the pickup, with up to five selected as candidates. Activation and subscription checks run before preparing pushes, and ride-request payloads carry the ride identifier for driver navigation. The reviewed implementation selects one candidate batch; further automatic dispatch rounds were not established.
Driver eligibility & subscriptionsAdministrative adjustments and scheduled expiry enforcement
Administrators can search driver records, review submitted identity and vehicle details, and inspect approval, activation, and subscription information. Approval and rejection actions include rejection reasons. Subscription extensions and reductions use a configurable daily cutoff, record administrative attribution, and create driver notifications.
A scheduled function checks active drivers for expiry every 15 minutes, while a driver-document update trigger also enforces expiry. Expired drivers are marked inactive and offline, live presence is synchronized, and administrative alerts are created. These backend functions apply eligibility behavior independently of dashboard activity.
Targeted & scheduled notificationsAudience selection, operational alerts, push delivery, and in-app records
An administrative composer supports titles, message bodies, optional images, audience selection, immediate publication, and scheduled announcements. A five-minute scheduled function publishes due records. Backend audience handling supports passengers, drivers, shared broadcasts, and driver-specific notifications, with general Expo push delivery chunked into batches of up to 100.
Operational paths cover driver approval, subscription expiry, and ride requests. The mobile apps register push tokens and use notification interactions to navigate to relevant screens. In-app notification views and passenger read-state records connect persistent messages to device pushes. Live push delivery was not reverified for the supplied write-up.
Administration & engineering
Give operators the context to manage the service.
Shared records, activity reporting, feedback aggregation, and release tooling support the wider platform.
Three-application architectureTwo Expo apps and a React dashboard connected through Firebase
Passenger, driver, and administrator interfaces live in separate projects. Expo Router handles mobile navigation, while React Router handles the web dashboard. Shared Firebase ride, driver, user, and notification records coordinate the three experiences. Firestore stores operational documents, Realtime Database carries frequently updated driver positions, and Firebase Storage holds profile, vehicle, and licence images.
Scheduled automation and database-triggered operations live in the admin project’s Firebase Functions package, using Functions v2, Firebase Admin SDK, and Node.js 22 configuration. The passenger app uses Expo SDK 54, React Native 0.81, and React 19; the driver app uses Expo SDK 52, React Native 0.76, and React 18. The administration app uses React 18 and Vite 5. These versions reflect the reviewed package manifests.
Administrative access & reportingPermission-aware interfaces, activity calendars, charts, and CSV exports
Dashboard summaries cover drivers, approvals, clients, and ride requests alongside recent activity. Admin and super-admin profiles define page and action permissions, with interface helpers controlling available screens and actions. Administrator management includes account status and permission configuration. Backend authorization enforcement was not verified by the source review.
Taxi activity calendars and individual driver reports combine stored daily usage records with accepted-driver information from ride records. Recharts provides a seven-day driver-activity chart, and CSV exports cover worked days and date-range usage. The daily-usage reporting interfaces exist, but the reviewed scheduled aggregation function is commented out.
Ratings & release toolingTransactional rating updates and EAS build configurations
Post-ride feedback is stored beneath driver-specific rating records. A Firestore transaction updates rating totals, counts, and averages, accounting for an edited rating by adjusting its previous contribution. This supports both new feedback and changes to an existing ride rating.
EAS profiles cover development, preview, and production builds, including Android APK previews and passenger store-distribution configuration. Project commands cover mobile linting, formatting, native builds, admin builds and linting, and Firebase Functions emulation, deployment, and logs. Configuration and tooling do not establish store-delivered runtime behavior.
Implementation & verification scopeSource-review boundaries for payments, reporting, security, and devices
The supplied source review covers kisal/turn-client, kisal/turn-driver, and kisal/turn-admin, including the admin project’s Firebase Functions. It did not execute or reverify tests, lint, builds, cloud deployments, live authentication, Google API responses, push delivery, background behavior on physical devices, or store-delivered applications.
Payment-related files are present, but processing logic in the reviewed payment component is commented out, so completed payment integration is not claimed. The review also does not establish production scale, measured performance gains, full security-rule coverage, or complete translations. The separate Turn marketing website is outside the three-application review.
BEHIND THE RIDE
Shared records. Event-driven coordination.
Operational documents, live driver presence, and backend triggers keep the three applications connected.
Explore the backend workflow
Firebase event triggers and scheduled functions connect ride requests, driver eligibility, and notifications. New requests initiate nearby-driver selection; subscription schedules and document updates enforce expiry; scheduled announcement publishing turns due notification records into delivery work.
Firestore holds the operational record, Realtime Database carries live presence, and Expo Push connects events to mobile navigation. The implementation separates frequent position updates from business documents while letting passenger, driver, and administration interfaces respond to the same transport workflow.
TECHNOLOGY
The tools behind each layer.
- Passenger application
- Expo SDK 54 · React Native 0.81 · React 19 · TypeScript · Expo Router
- Driver application
- Expo SDK 52 · React Native 0.76 · React 18 · TypeScript · Expo Router
- Administration & reporting
- React 18 · Vite 5 · React Router · JavaScript · TypeScript · Redux Toolkit · React Redux · Recharts · Ant Design · CSV exports
- Interface & mobile state
- NativeWind · Tailwind CSS · Expo Vector Icons · Zustand · React hooks · AsyncStorage
- Identity & operational data
- Firebase Authentication · Native Google Sign-In · Cloud Firestore · Snapshot listeners · Transactions · Batched writes · Realtime Database · Firebase Storage · Expo Image Picker
- Maps & device location
- React Native Maps · Google Places APIs · React Native Maps Directions · Expo Location · Expo Task Manager · Android foreground-service configuration
- Languages & notifications
- i18next · react-i18next · English · Sinhala · Tamil · Expo Notifications · Expo Push API · Firebase event triggers
- Backend & release tooling
- Firebase Functions v2 · Firebase Admin SDK · Scheduled functions · Node.js 22 configuration · Expo development builds · EAS Build · ESLint · Prettier · TypeScript
WHAT IT BRINGS TOGETHER
Passenger booking, driver operations, and administration — connected.
Turn Taxi brings passenger ride discovery, competitive driver offers, transactional acceptance, shared ride progress, and post-ride feedback into a three-application platform. Driver tracking and document-based onboarding connect to administrative approval, subscription adjustments, targeted notifications, and activity reporting.
The work combines React Native mobile delivery, a React operations dashboard, Firebase data synchronization, backend automation, Google mapping integrations, and multilingual interfaces. The result connects booking, driver participation, and administrative workflows for a Sri Lankan tuk-tuk service.