All work

In progress2026Public transport information platform

Samokov TransitСамоков

Samokov is a town below the Borovets ski resort. Its bus timetables are published as PDFs. This project turns them into something you can search.

Role
Design, data work and build
Built with
TypeScript, React, GTFS, Fastify
Fields
  • Transit
  • Web
Links
Samokov transit map on a phone with coloured bus lines and a list of lines
Network view from an earlier iteration of the passenger app.
Line 14 to Borovets shown on a phone with route details and fare
Line 14 to Borovets, with sector and fare.

Context

The goal is a map and timetable for residents and visitors: lines, stops, destinations and scheduled departures, in Bulgarian and English, in light and dark themes.

I rebuilt this project several times before the current repository. The lesson from the earlier versions was that the interface is the easy part. The timetable data is where a transit app is right or wrong.

Approach

So the current version started with the data. The source is a GTFS feed for the Samokov network. Before importing anything I pinned it to an exact revision, recomputed the checksum of every file, and ran the validation pipeline in an isolated copy. The result: 0 errors and 225 warnings, each one categorised.

The repository is a pnpm workspace. One package normalises the feed into validated JSON, another provides the query layer, and a separate Fastify service probes the transport data sources. The passenger app reads the generated data.

public lines
6
stops
87
trips in the feed
165

Progress

4 of 7 milestones done

  1. PrototypeInteractive React prototype with demo data(done)
  2. Data auditFeed verified and pinned to a revision(done)
  3. App foundationProduction app workspace(done)
  4. Data pipelineGTFS normalised into validated JSON(done)
  5. Live mapMapbox integration(not started)
  6. Passenger screensReal data in every view(not started)
  7. Release checksTesting, accessibility, preview(not started)

Details

What the audit found
Six public lines (1, 2, 14, 16, 17 and 21), 87 stops, 165 trips and 19 route shapes. Line 21 only runs in winter and has no direction field, so directions have to be derived.
What the audit could not prove
The feed is inside its validity window, but nobody has checked it against buses on the street. The audit records that, so the timetable is treated as scheduled data, not confirmed service.
Demo data is labelled
The prototype marks fixture data as demo data in both languages, so a screenshot can never be mistaken for a real departure board.

Where it stands

This is unfinished work. The prototype, data audit, app foundation and data pipeline are complete. The live map, passenger screens on real data, and release testing have not started, and there is no public deployment yet.