Tågtider
Live demo at tagtider.alfonsnilsson.com/ Overview
Tågtider (Train schedule in english) is a web-app that shows train departure and arrival times targeting commuters. It also notifies you of any canceled trains or reroutes and other information that might be useful for your trip.
Technology
- Next.js + TypeScript: The front-end and back-end are written in TypeScript using Next.js which is a framework for writing fullstack React application.
- The Swedish Transport Administration open API: All data for departures, arrivals, delays, and other train info are published by the government agency responsible for the planning of the railroad. My app fetches data from their API and transforms it to a user-friendly format.
- Lucide icons: The icons used in the app are svg icons from Lucide.
Problem
There are a lot of regional train apps in Sweden. Each working reasonably well in their respective region, but most don't work at all outside that region. The once that do work across the whole country, mainly SJ's app, target travellers instead of commuters. The app shows irrelevant information, like the price of each journey which will be the same for each departure and doesn't need to be repeated. It also hides more important information, such as replacement traffic, which track the train departs from, and delays.
My app aims to solve these problems by allowing the user to find departure times for all stations around the country. It's quick and easy to find connecting trains between two stations and important information like departure track, delays and canceled trains, is shown for each departure to give the user an overview of delays. Screenshots



