PROJECT 21 • DAY 7 OF 90 • CIVIC MOBILITY BI

NELLAI TRANSIT
TRACKER.

A civic-technology public transport tracker for Tirunelveli (Nellai), Tamil Nadu — unifying TNSTC local bus corridors, 5-digit Southern Railway status checks, Haversine stop proximity maps, and an honest data-freshness policy with zero fake GPS dots.

Python 3.12Streamlit 1.40+Folium / LeafletPostgreSQL 16SQLite Dual DB37/37 Pytest
Nellai Transit Tracker Preview
CIVIC NETWORK
20 Stops • 10 Trains
PYTEST SUITE
37 / 37 Passed
20 Stops
Verified TEN District Registry
6 Corridors
TNSTC Tirunelveli Routes
6 Status Tags
LIVE to UNAVAILABLE Honest Policy
37 / 37
Pytest Tests Passed
01 / Overview

HONEST CIVIC TRANSIT DATA FOR TIRUNELVELI COMMUTERS.

Many apps animate synthetic buses on maps without real feeds. Nellai Transit enforces strict local-eligibility checks and surfaces verified freshness labels on every route and locomotive.

01

20 Verified District Stops

Indexes key Tirunelveli hubs (TEN Junction, VBS, PCO, TSI, Palayamkottai, Anna Univ, Nellaiyappar Temple).

02

Haversine Stop Proximity

Finds nearest bus stops using device coordinates, Tamil/English landmarks, or origin-destination corridor filters.

03

5-Digit Train Eligibility

Checks Southern Railway services (e.g., 20666 Vande Bharat, 12632 Nellai Express) with platform/delay info & WAP-7 CRIS telemetry.

04

Non-Local Exclusion Filter

Detects out-of-district trains (e.g., 12621 Tamil Nadu Express) explicitly instead of misreporting them locally.

05

Strict Provenance Tags

Classifies every metric as LIVE, RECENT, SCHEDULED, ESTIMATED, STATIC, or UNAVAILABLE — zero fabricated GPS vehicles.

06

Dual PostgreSQL + SQLite

SQLAlchemy ETL pipeline seeding structured corridor timetables cleanly into SQLite local or PostgreSQL 16.

02 / Architecture

HOW IT WORKS.

Modular provider layer (BusStop, BusRoute, BusTracking, TrainSchedule, TrainStatus) queries SQLAlchemy Dual DB and renders Stitch civic UI.

STAGE 01

Seed & ETL

Tirunelveli stops & TNSTC/SR timetables.

→
STAGE 02

SQLAlchemy

PostgreSQL 16 / SQLite dual storage.

→
STAGE 03

Providers

Haversine search & eligibility filters.

→
STAGE 04

Provenance

LIVE / SCHEDULED / ESTIMATED tagging.

→
STAGE 05

Civic UI

Stitch desktop + mobile Folium views.

03 / Screenshots

APPLICATION SCREENSHOTS.

Live screens captured from the running application. Click any image to view full size, or follow setup instructions in the GitHub repository.

04 / Technical Details

TRANSIT DATA GOVERNANCE & ELIGIBILITY RULES.

Key modules, rules, safety checks, and automated test results documented in the repository.

Provider / Rule Coverage / Logic Civic Guarantee
BusStopProvider 20 verified stations + Tamil/landmark lookup Haversine distance sorting
TrainScheduleProvider 10 SR trains incl. 20666 & 12632 Filters out non-TEN trains transparently
Freshness Provenance 6 explicit tags: LIVE .. UNAVAILABLE Zero synthetic moving vehicles
Automated Testing tests/ analytics, ETL & Tirunelveli fixtures 37 / 37 Passed (100%)
05 / Tech Stack

CORE TECHNOLOGIES.

Frameworks, databases, visualization tools, and testing libraries used in Nellai Transit Tracker.

CIVIC FRONTEND
Streamlit • Stitch Civic UI
MAPS & GEOSPATIAL
Folium • Leaflet • Haversine
DATABASE ENGINE
PostgreSQL 16 • SQLite Dual
ETL & ORM
SQLAlchemy • Python 3.12
DOMAIN DATA
TNSTC • Southern Railway CRIS
VERIFICATION
Pytest (37/37 Passed)
06 / Next Steps

FUTURE ENHANCEMENTS.

Upcoming improvements planned for Nellai Transit Tracker.

Real-time GTFS-RT bus GPS ingestion once municipal TNSTC feeds open.
Native Tamil UI localization toggle across stops and route announcements.
Peak-hour intersection delay heatmaps across Palayamkottai corridors.
Progressive Web App offline timetable cache for rural network zones.
Fare calculator integrating express vs ordinary bus stages.
Automated crowd-sourced platform change confirmation alerts.
OPEN-SOURCE PROJECT • GITHUB.COM/RAGURAMRRP

EXPLORE SOURCE & DOCS.

View the complete codebase, sample datasets, quick-launch scripts, and automated test suites on GitHub.