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.
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:
https://api.steve.fi/Helsinki-Transport/data/$ID
For example:
- Lasipalatsi, near Kamppi.
- The stop next to my house.
- A nearby bus-stop next to my house.
If you're unsure if the ID of a particular stop simply find it upon the interactive map.
There are implementation notes & source code available.