Public
Live departures from Estonia stop, Tallinn
dashboardtallinntransit
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.

Estonia stop — live departures

Real-time departure board for the Estonia stop cluster in Tallinn, built on the public feed at transport.tallinn.ee.

How it works

GET https://transport.tallinn.ee/siri-stop-departures.php?stopid=<siriId,...> returns a flat text response — a header carrying the source's own clock (seconds since Tallinn midnight), then one stop,<siriId> line per platform followed by its departures:

Transport,RouteNum,ExpectedTimeInSeconds,ScheduleTimeInSeconds,68512,version20201024
stop,1627
bus,18,68512,68460,Viru keskus,38,Z

backend/tallinn.ts fetches all five platforms in one request and parses that into JSON. A departure counts as live when the expected time differs from the timetable — that difference is the GPS-observed delay shown next to each row.

Platforms

The stop area a21201-1 lists 14 member platforms, but only five carry service; the "Estonia 1..7" bays return nothing. Both stops.txt and GTFS name every platform simply "Estonia", and only two publish a street, so the rest are identified by code plus a towards list computed from what is actually departing there.

CodeSiriIDStreet
21201-11627Estonia pst
21203-21628Teatri väljak
21203-114969
21204-11629
21205-11630

Routes

  • / — the board (React, polls every 15s; countdowns tick locally against the source clock)
  • /api/departures — JSON, upstream responses coalesced for 8s
  • /source — view the code