Live
Sign in

Seat-level fare verification · Dehradun city buses

No red seat leaves the stop.

TapNGo checks every fare at the seat instead of the door. A passenger sits, taps a card on the seat in front, and the seat turns green. The conductor sees every unpaid seat live, and the bus leaves only when none are red.

Grey · empty Red · not paid Green · paid
ISBT ⇄ Rajpur · 12 stops
The problem

Too few buses. Too much time at the door.

Indian cities are short of buses, and the ones on the road lose time and money to cash fares. A conductor in a crowded aisle can't track who has paid. The money is already arriving: thousands of new e-buses come with automatic fare collection in scope.

13.3–13.8

buses per lakh urban residents in India, against a government benchmark of 44.

CSE & CITIES Forum, Aug 2026 · The Pioneer

70%+

urban bus deficit. Only about 65,000 of 14.5 lakh registered buses run as organised city buses.

CSE & CITIES Forum, Aug 2026 · Down To Earth

400+

Indian cities have no organised urban bus service at all.

CSE & CITIES Forum, Aug 2026 · Down To Earth

10,000

new e-buses for 169 cities under PM-eBus Sewa (₹57,613 crore), with automatic fare collection systems in scope.

Union Cabinet, Aug 2023 · Moneylife

100+

riders reported on peak-hour buses built for 44 seated and 25 standing, in Chennai, where the fleet meets about half of demand.

Down To Earth, May 2025 · How India Moves

₹1.2L/day

estimated fares pocketed without tickets on one Bengaluru network, from about 380 monitored trips. A citizen estimate, not an audit.

S. Narasimhan, 2013 · Citizen Matters

₹

Cash and change

The conductor juggles tickets, notes and coins while the bus moves. Every "chhutta do" costs a stop's worth of time.

⌁

QR needs signal

Scan-to-pay fails exactly where buses run: hill roads, underpasses, crowded towers. A card tap works offline.

?

Who hasn't paid?

With 40 people aboard, nobody can see which seat is unpaid. Fare evasion and silent leakage go unnoticed.

How it works

Sit. Tap. Turn green. Go.

Every seat carries a small reader with an LED ring. The ring is the seat's state, and the conductor's dashboard shows all of them at once.

STEP 1
→

Sit down

A pressure sensor notices someone sat down. The seat turns red: occupied, fare not verified.

STEP 2
→

Tap your card

Tap the card on the reader on the seat back in front. The fare comes from the stop-to-stop chart and is deducted offline. The ring turns green.

STEP 3
SEAT 09 · UNPAID

Conductor sees it

Red seats appear live on the conductor's dashboard: remind the passenger to tap again, or collect cash and mark green.

STEP 4

Bus departs

When no seat is red, the departure check shows GO. Every tap is logged in order for the depot.

Live demo

Run the conductor's dashboard

This is a sample trip on the ISBT ⇄ Rajpur corridor, paused at Railway Stn. with two unpaid seats. Click a seat to board a passenger, tap a card, collect cash or let someone off. Then try to leave the stop.

ISBT → Rajpur · Stop 4/12: Railway Stn. Sample trip
▲ Front · driverDoor
Select a seat to see what the conductor can do.
Conductor dashboardStop-to-stop fares
HoldSeats 07, 09 are red.
On board
6
of 12 seats
Rides today
6
seats turned green
Revenue
₹155
Card 135 · Cash 20

Event log · newest first

    The demo picks tap results at random: most cards pay, some fail to read, and some are short on balance. Fares come from the same chart as the C++ prototype, and nothing here touches real money.

    Route & fares

    One corridor, twelve stops

    The prototype runs the ISBT ⇄ Rajpur corridor as a round trip, priced from the team's stop-to-stop fare chart. Pick two stops, or click any cell in the chart. Dehradun already runs 30 Smart City e-buses on city routes like this one (ThePrint, Dec 2022).

    Stops
    3
    ridden
    Fare
    ₹20
    one way
    Round trip
    ₹40
    there & back

    ISBT → Railway Stn. · ₹20 from the fare chart.

      Fare chart in ₹, rows = boarding stop, columns = getting-off stop. The same matrix lives in Bus.h as fare_map[12][12].Same fare in both directions.
      Compare

      Why the seat, not the door

      Card readers at the door and scan-to-pay stickers already exist on Indian buses. None of them tell the conductor which seat has not paid. TapNGo gives every seat a live paid or unpaid state.

      What mattersCash + conductorQR / scan to payCard tap at the doorTapNGo seat tap
      Queue at the doorYESConductor reaches each riderNOPay from the seatSOMEOne reader, one lineNOBoard, sit, then tap
      Works without mobile dataYESNONeeds phone signalYESOffline cardYESOffline card
      Conductor sees who hasn't paidNOMemory onlyNOPARTLYTap count, no seatYESPer seat, live
      Departure checkNONONOYESGO only when no seat is red
      Cash handlingHEAVYChange for every riderNONENONEFALLBACKConductor marks cash green
      Hardware per busNONESTICKER1–2 READERS1 PER SEATHighest cost

      Known limits, stated up front

      • Standing passengers have no seat reader. The plan is a handheld reader for the conductor, logged into the same queue.
      • Cost per bus rises with one reader per seat, so the first pilots fit all-seated e-buses and shuttles.
      • A hard departure lock could hurt schedules. In the pilot, red seats alert the conductor and do not block the driver.
      Under the hood

      Inside the C++ prototype

      The working prototype is a C++ console program: three classes, a 12 × 12 fare matrix and a linked-list transaction queue. It runs the full loop from occupying a seat to clearing the bus for departure.

      Bus.h · Bus.cpp

      Bus

      Seat states live in a vector: 0 empty, 1 unverified, 2 verified. The class assigns passengers, marks seats verified and releases them.

      Built
      2D array

      Fare matrix

      fare_map[12][12] holds the fare chart and locations[12] names the stops. setFare() is a single lookup.

      Built
      Passenger.h · Passenger.cpp

      Passenger

      Holds a passenger ID and name. isValid() must pass before a seat is assigned.

      Built
      Payment.h · Payment.cpp

      Transaction queue

      Paid fares join a linked-list queue with front and rear pointers. Releasing a seat removes its entry.

      Built
      Dashboard

      Departure check

      showDashboard() prints every seat in ANSI red or green. checkDeparture() stays false while any seat is unverified.

      Built
      OS · DBMS

      Next modules

      Concurrent taps on separate threads guarded by a mutex, and trips plus transactions stored in SQL.

      Planned
      // Bus.h: the fare chart as a 12 x 12 matrix
      const int fare_map[12][12] = {
        { 0, 10, 10, 20, 20, 25, 25, 30, 35, 35, 40, 45 }, // ISBT
        { 10, 0, 10, 15, 20, 20, 25, 30, 30, 35, 40, 45 }, // Majra
        /* ... 10 more rows ... */
      };
      
      // Bus.cpp: fare is one array lookup
      void Bus::setFare(int seatno, int start, int stop){
          fare[seatno] = fare_map[start][stop];
      }
      
      // the bus may leave only when no seat is unverified
      bool Bus::checkDeparture(){
          for(int i = 1; i <= getSeatCount(); i++)
              if(getStatus(i) == 1) return false;
          return true;
      }
      $ ./tapngo
      Number of seats(1-100): 12
      1. Occupy Seat     2. Pay            3. Release Seat
      4. Dashboard       5. Check Departure
      6. Transaction     7. Show Stops     0. Exit
      -- Driver Dashboard --
      Seat 1: VERIFIED   Seat 2: UNVERIFIED   Seat 3: EMPTY
      Unverified Passengers Remains.

      Roadmap

      01Done

      Console prototype

      Bus, Passenger and Payment classes, the 12-stop fare matrix, a transaction queue and the departure check.

      02Now

      Live dashboard

      A seat map that redraws every second, with rides and revenue counters and a cash fallback.

      03Next

      Hardware seat

      ESP32 + RC522 RFID reader + LED ring + seat pressure sensor.

      04Proposal

      Corridor pilot

      One e-bus on ISBT ⇄ Rajpur, alert-only mode, for four weeks.

      05Later

      Depot reports

      Stop-wise ridership and revenue from the transaction queue, stored in SQL.

      Team A3K

      Four builders, one working bus

      B.Tech CSE, Semester III, Graphic Era (Deemed to be University), Dehradun. Team #DSCPP-III-2026-T078.

      KJ

      Karnika Jain

      Team lead · Seats
      • Bus
      • Seat states
      AB

      Anirudh Bahuguna

      Payments
      • Payment
      • Card check
      AB

      Aaditya Budakoti

      Data & records
      • Passenger
      • Transaction queue
      • Tests
      AP

      Aparajita Pant

      Conductor dashboard
      • Dashboard
      • Departure check