Helsinki Transport API

I built a small hardware-device to show the departure times of the trams/busses near my house:

Unfortunately the project was built just as the official Helsinki API was going through a transition, from HTTP & JSON to GraphQL. To isolate my device from future changes I setup this API, which is polled by the device to retrieve details of upcoming departures.

If the back-end provided by the Finnish Transport Agency changes again I can update this site, without the need to reprogram my hardware device.

Transport API

Each bus & tram stop in the city of Helsinki is identified by a unique numerical ID, given that ID the following URL will return the next ten departures for the specified stop:

For example:

If you're unsure if the ID of a particular stop simply find it upon the interactive map.

Implementation & Source Code

There are implementation notes & source code available.