Two simple questions
Which buses go between these two stops, and what does the trip cost? Those are the questions the Sri Lanka Bus Fare Calculator answers. They sound simple, but answering them reliably for the whole country starts with data, not code.
The dataset is the product
The project is built on a structured dataset that now covers more than 1,000 bus routes and over 6,000 stops. Every route and every stop is stored in a consistent shape, so they can be searched, combined and kept up to date as routes change.
People search in Sinhala, Tamil and English, and the same stop can be written several ways. Supporting all three languages in search was a requirement from day one, not a feature added later.
API first, then the app
I designed a REST API before building the interface. One endpoint returns every available route between two stops with its fare; another powers stop search for autocomplete. Documenting the API made the app simpler to build and lets other projects use the same data.
Built for phones
Most fare lookups happen on a phone, often at the bus stand. The web app is mobile first, with smart stop autocomplete so you can find a route in a few taps, in the language you think in.


