01
The problem
A trip across India rarely uses one mode, but planners show one mode at a time. So people stitch metro, train, bus and cab legs together themselves.
02
Who it's for
Anyone planning a trip in India that crosses more than one mode of transport.
03
The insight
The useful answer is the whole journey, door to door, with an honest label on how much of each leg is real data. Which modes to use, and in what order, should be the planner's job.
04
What I built
You say where you're going. Marg puts together complete door-to-door journeys across metro, trains, flights, buses, ferries, autos and cabs.
- Ranked, your way. Journeys are ranked across time, cost, changes, reliability and comfort, with a priority slider and preferences such as step-free and less walking. The user sets the trade-off, not the engine.
- Compare and inspect. Side-by-side comparison, journey detail and an interactive map.
- Journey Mode. Re-routes after a delay or a missed connection.
- Labelled data. Every leg says whether it is Live, Timetable, Estimated or Demo.
- Built for India. English and Hindi interface, installable as a PWA.
05
The key decision
Label every leg Live, Timetable, Estimated or Demo, and say plainly that most data is still demo, rather than let a preview pass as real-time. Trust is cheaper to keep than to win back.
06
How it works
- Route engine: multi-criteria Pareto ranking over time, cost, changes, reliability and comfort.
- Provider abstraction: any transport source plugs in behind one interface, and a failing provider never fails a search.
- Real timetables: a GTFS importer lets operators' open feeds replace demo data without touching the engine. Kochi Metro (KMRL open data) is the first.
- Hardening: rate-limited, cached planning with budget controls, security headers and a nonce-based CSP.
07
Quality
- 260+ Vitest unit tests.
- Playwright end-to-end runs on desktop, mobile and tablet.
- axe accessibility checks (WCAG AA) and performance budgets in CI.
08
Built with
09
Where it stands
Early preview, live. Kochi Metro is the first real timetable; most timetables and all fares are still demo or estimated, and every leg says which. The GTFS importer is the path for real timetables to replace demo data.
10
What it taught me
- When most of the data is still demo, the product has to say so plainly instead of hiding it.
- Design the architecture so real data can arrive later without rewriting the engine.
- Treat an early preview as a real product: tests, cross-device runs and accessibility checks from the start.