All projects

Namma Metro trip planner

When is the next train, and what will it cost me?

Trip planner for Bengaluru’s metro: pick two stations, get the route, the fare and the timings.

What it is
Personal project
My role
Built solo
Year
2025
Status
Live
  • React
  • TypeScript
  • Tailwind CSS
  • Vercel
Namma Metro trip planner cover

The problem

Riders pieced together the route, fare and timings from different places, often while already standing at the station.

How I solved it

  • The whole network (lines, stations, interchanges) is written down once as a graph.
  • The route is found by searching that graph; fare and timings are read off the route.
  • A new line is a data change, not a code change.

System design

  • React with strict TypeScript, deployed on Vercel.
  • Network as typed data: stations as nodes, line segments and interchanges as edges.
  • Route search over the station graph; fare and schedule computed from the result.
  • Reusable typed components shared across views.

Trade-offs

  • Static network data over a backend: instant results, free hosting, nothing to keep running. Cost: timetable or fare changes need a redeploy.
  • Published timetables over live train data: works without an official real-time feed. Cost: shows scheduled times, not live delays.
Next projectWhere did this month’s money actually go?