Helsinki Transit Live

Rating: 
4.666665
Your rating: None Average: 4.7 (3 votes)

Real-time locations of Helsinki Region Transport (HSL) public transport vehicles.

The realtime data comes from the Digitransit HSL MQTT API, which is a "work in progress", "very likely to change in the near future" and "there might be mysterious bugs lurking in the data". At least some of the tram numbers are wrong, so if you use trams, you might want to check them all on the filters page.

The line filter page in Helsinki Transit Live lists all HSL lines, but realtime data is actually available only for an unknown part of them. New HSL ticket and information systems (to be updated late 2016?) will improve both the coverage and the update frequency of realtime data. See the web interface for a look at the current coverage.

Source code and issue tracker are available at GitHub. Discussion at TMO.

Screenshots: 

Comments

AnttiT's picture

Am I the only one not seeing any vehicles after the latest update? Even the settings page ends up into a never ending loading. All I see is a map.

otsaloma's picture

API works again. Connection errors handled more gracefully in version 1.3.1.

otsaloma's picture

That new API seems to currently return "ConnectionRefusedError: [Errno 111] Connection refused". There's no proper error handling in Helsinki Transit Live yet, because I haven't used MQTT before and I don't know what kinds of errors can happen. Now that I see this error, I'll add some kind of error handling. The API remains unstable though, no guarantees about anything.

AnttiT's picture

How can I access the settings of the app?

otsaloma's picture

There are no settings. What would you want to set?

AnttiT's picture

Somehow I thought the app would be able show also busses, and therefore was looking for a setting to choose the vehicle type.

otsaloma's picture

Currently we're using the HSL Live API, which only shown trams and metro. It's the same as the official web interface: http://live.mattersoft.fi/hklkartta/

New APIs are coming in 2016, which should show buses and trains as well (at least some of them), but it's not yet documented or stable. There's a demo website available, which uses some development version of the upcoming API: http://dev.hsl.fi/live/

AnttiT's picture

So Jollaopas uses some other API, then?

otsaloma's picture

Based on a quick look at the source code it uses http://dev.hsl.fi/siriaccess/vm/json i.e. the SIRI VM JSON API, which is as the URL implies a development API, which might not be ready for production use. I can't find any documentation for that and at dev.hsl.fi they also list an MQTT API for vehicle locations -- I don't know which, if either of those, is the one that's going to be the final production API.

Marchusch's picture

Simple, straightforward and works well, just the way I like it. Could use options for selecting which lines to show and maybe for displaying their routes and stops etc. Also, tram lines 2 and 3 seem to get mixed up but I can imagine it's tricky since the number changes halfway round the loop. All in all very nice!

otsaloma's picture

HSL seems to have a new API in the works for vehicle locations, which would show also buses and trains  (see Live map). Once that's stable, documented and ready for use, I'll consider adding features, since they make more sense when there's more stuff to show.

That occasional tram 2/3 confusion is in the data provided by the API. There's also sometimes some trams missing, which is probably a bigger problem.