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: 
Application versions: 

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.

Morbian's picture

Yeah same issue here...

otsaloma's picture

The API URLs changed on friday (as expected per their warning "Please notice that API urls are about to change during March 2016", just a bit late). I released 1.3.2 to adapt to that. Are you using 1.3.2?

AnttiT's picture

Alright, now it works! Unfortunately, the app is a bit awkward to use now. Could you e.g. add some presets (e.g. trams, trains and buses) and 'select all' for the search results?

otsaloma's picture

I'll consider making selections easier. Note that you can already currently search for both line number or vehicle type. So, if you type "tram" in the search box, you should see a list of all trams.

My long term plan is to move the functionality of this app to Helsinki Transit Stops, which already includes things like favorites and nearby stops, so you easily e.g. see vehicles of all lines passing through the nearest stop. But, since Helsinki Transit Stops is already at the Jolla store, it might have to wait until QtLocation maps are allowed there.

AnttiT's picture

Merging the two apps was actually another thing I was going to propose :) What are the plans nowadays?

otsaloma's picture

I don't have plans to further develop Helsinki Transit Live as an independent app. Instead, I'm waiting for Jolla to port Sailfish OS to Qt 5.6, which should mean allowing QtLocation to be used in Harbour apps. Once that's possible, I'll add a map view to Helsinki Transit Stops. The exact functionality and UI is undecided, but at least I would add a "View map" pulldown menu item to the departure views, that would show vehicles of those same lines on a map. Jolla has begun the Qt 5.6 porting work, but I don't know when we can expect it.

And regarding the bigger picture, I expect to port Helsinki Transit Stops and Poor Maps to the Digitransit API during October-November and before the end of the year, HSL should get their new systems in place, which together means we'd have real-time data.

AnttiT's picture

Sounds great!

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.