Top
Best
New

Posted by scrlk 8 hours ago

Real-time map of Great Britain's rail network(www.map.signalbox.io)
323 points | 123 comments
Bengalilol 6 hours ago|
Switzerland's real-time map of trains and public transport (zoom in on a city to view its public transport in real time). You can find boats too.

And if you check on/off the other options, you get way more informations.

https://maps.trafimage.ch/ch.sbb.netzkarte?lang=en&baselayer...

sbb_equals_ffs 3 hours ago||
It's certainly a cool map and useful to get a general idea how many trains are around at any given time, but it's important to note that this is not real data. They use the train schedule combined with the projected delay to estimate track location. I'm not sure if it's because SBB has an interest in keeping reported delays low or if they think exposing real data is a security risk, but I noticed the data being fake on several occasions, for example:

- My train wasn't able to continue its journey and was stuck between two stations for a few minutes while the map showed it continue to the next few stations up until the point where it started moving again, when their App also showed it running with a delay of 8min.

- On several occasions: watching the map show a train roll into the station and driving off, while seeing from my window that the train is only just arriving when the map shows it as between stations already.

Bengalilol 2 hours ago||
You are right, the devs says that the vehicle positions are estimated from the official timetable and real-time GTFS-RT delay information, rather than from publicly available GPS coordinates.

<https://opentransportdata.swiss/en/cookbook/realtime-predict...>

btw while looking for th GTFS-RT info, I found this site, which is less minimal but has a 3D cockpit beta functionality...

<https://transitflow.ch/>

Brajeshwar 1 hour ago||
I think I saw and was fascinated by this which some time back here on Hackernews, https://maps.vasile.ch/transit-sbb/
dan_sbl 3 hours ago||
Meanwhile, the sad state of intercity trains in the United States, outside of the Northeast Corridor.

https://asm.transitdocs.com/ https://amtraker.com/map

AJRF 7 hours ago||
> Signalbox's technology identifies the train a device is on by matching a snapshot of smartphone data to a train’s trajectory data. The technology uses advanced algorithms works even with severely degraded data. We are able to pinpoint a smartphone to any type of train without background location tracking or hardware.

Hmm, that's...interesting?

vaillancourtmax 7 hours ago||
Seems similar to Transit's approach: https://blog.transitapp.com/go-underground/
amelius 6 hours ago||
Meanwhile, other engineers are working on reducing the vibrations.
RobinL 1 hour ago|||
It works fairly well empirically: my 7yo likes to watch trains and we regularly use this map to know when to expect one to pass. Not perfect, but pretty good
ed_elliott_asc 7 hours ago||
I wonder what app has allow location on all the time and is feeding them their data
bcraven 7 hours ago||
"Acquired by Trainline in 2023, Signalbox works with organisations across the rail ecosystem to improve customer information and operational awareness."

https://www.signalbox.io/news/southeastern-launches-track-my...

pjc50 4 hours ago|||
So, we don't know if this is the case, but one way to do this is not to ask the phones but the cells. The mobile network has to know where the phones are by cell; the cells are often small relative to the speed of the train; there are also cells installed specifically to improve service on trains, or provide a base station to the train wifi, or for communications to railway staff.

If you get a bunch of phones switching cell near simultaneously, you can tell that a train movement across the cell boundary has probably happened. Then correlate that with the other data feed about train blocks, and bob's your uncle.

Only about 50% of trains have wifi: https://www.businesstravelnewseurope.com/Ground-Transport/UK... ; but it's easy to imagine getting the mobile hotspot on the train to share its GPS location as well.

AJRF 7 hours ago|||
Few questions, wonder if anyone knows the answers:

1. So it's Trainline on a persons phone that is tracking this info and using it to enrich this service? I use Trainline and didn't know it was doing that, but I do have location permissions on because I was told that powered the search picker when I started using the app.

2. What did they use _before_ Trainline? Or was Trainline selling user location data to them?

Liquid_Fire 7 hours ago||
I think you're misunderstanding what they are saying. They don't use background location data, but they do use your current location data. Try the "Find My Train" demo on their site - it asks for location permission.

Or their API - it also expects device location data:

> At a minimum, requests to the detect endpoint _must_ contain a device's location measurement. Additional fields can be included where available to improve the accuracy of the returned results as outlined below.

https://docs.signalbox.io/docs#/operations/Detect_detect

AJRF 7 hours ago||
wait - so you think that the map is made up of people who are all sitting on that website using the Find My Train demo?

I think you are missing the point - what is collecting data on all those trains.

Liquid_Fire 7 hours ago||
No, live train data in the UK is already publicly available, e.g. see https://www.opentraintimes.com/

This is matching your phone's location to the already public train data.

AJRF 7 hours ago||
> This is matching your phone's location

But what is getting that?

Liquid_Fire 7 hours ago||
You are giving it to them. That's why the demo asks for your location permission, and that's why the API expects location info.

"You" here means another app that integrates their API (or you as an individual using the demo on their website). How the other app gets it is up to the other app - ideally it also just queries it directly and requires location permission.

frnz 6 hours ago||
so an empty train does not show up?
Liquid_Fire 6 hours ago|||
Not sure how you came to that conclusion. An empty train would still exist in the live train data. It does not depend on mobile phones, but on rail signals and other such tracking built into the rail infrastructure.
frnz 5 hours ago||
of course, sry, I didn't read the descriptions. Thanks for clarification!
Hikikomori 6 hours ago|||
Does a train exist if you are not on it?
jillesvangurp 1 hour ago||
I looked into the gtfs (gtfs.org) a while ago. This is a data feed format (protobuf based) that a lot of sites like this use for both schedules and real time updates that is pretty widely adopted. Most gtfs location feeds require getting an API key. But there are a handful of public ones that share actual location updates without that.

This is also how e.g. Google maps and others integrate schedule information for public transport as well.

Building a map from the real time updates is relatively straight foward once you have access.

dan_sbl 1 hour ago|
GTFS is widely adopted, "standardized", but also quite a wild west when it comes to the actual details. I've been building http://mobility-bot.com/ as a spare time project for two years, parsing the alerts GTFS feeds from a handful of providers, and for just about every one of them, I have to do something in the pipeline to clean up the provided data - fixing unicode issues, remapping route and agency IDs, rewriting headers and descriptions to not be identical, etc. You also have to watch and capture the data over time to make sure you have a corpus to generalize parsing and cleanup rules from.

Most of these projects made the smart choice to focus on a single or just a small handful of related providers. As soon as you're trying to aggregate, the problem becomes a lot trickier.

maelito 7 hours ago||
Checkout the French equivalent : https://carto.tchoo.net. Looks more complete.

Past similar HN submission got no attention, whereas the UK's top page. Interesting !

https://news.ycombinator.com/item?id=45249351

Shywim 6 hours ago||
Note that carto.tchoo does not provide real position in real-time: it only has access to departures, stops, delays and suppressions and interpolate position based on this.

This means that if your train is running at half-speed or stopped but does not result in an official delay, the position will not match reality.

KlutzySofa 7 hours ago|||
The title matters a lot. Without "real-time" this submission has likely gotten the same lack of attention.
spacedcowboy 5 hours ago|||
Is the interesting part the upvotes, meaning there's more people interested in UK train networks than French ones ? And it's a comment on demographics ?

Or is the interesting part that the UK one is real-time, and the French one isn't (or at least, zooming in, I don't see them moving).

dominicrose 6 hours ago|||
And to see the status (Ile-de-France only): https://ratpstatus.fr/trains.html
windowliker 6 hours ago||
That's no surprise. The French equivalent of anything rail related is always more complete than the UK.
redeyedtreefrog 6 hours ago||
Would be better if it had some technical explanation rather than just yet another public transport map. This:

https://vgcgroup.co.uk/news/signalbox-for-train-locations/

suggests the data mostly comes from railway signalling information, plus a bit of "AI" in some way. I wonder how far apart railway signals usually are, or what the AI is trained on, or anything really vs just looking at a map.

4ndrewl 4 hours ago||
I've tried building one of these and the answer is - it's difficult.

There is a message queue that you can use to identify the last reported location of a train. Depending on the line you could get a pretty accurate real-time map (but first you need to georeference all of the location identifiers to eastings/northings.)

But many lines report only the last movement at a station stop - these are mostly in rural areas so the best approach seems to be to build some sort of dead-reckoning network taking into account train type and network utilisation.

greengreengrass 5 hours ago||
> I wonder how far apart railway signals usually are

It varies substantially across the network, dependent on the mode of operation of the signalling, the desired headway, the maximum operating speed, the service braking distance of the rolling stock at line speed, factors in the layout that might influence safety (e.g. junctions), the number of colour lights used on signal heads (i.e. 2, 3 or 4 colour lights), signal sighting distance, whether signal visibility might be affected by sun glare, etc. And of course this assumes that the area is actually using line-side signals – most of the network does, but there's notable exceptions using in-cab signalling or computer-based train control.

> suggests the data mostly comes from railway signalling information, plus a bit of "AI" in some way

I'm in no way affiliated with the website, but in areas that follow track circuit block principles (much of the heavily-used main GB railway network, excluding many more lightly-used outlying lines), the "signalling information" that article indicates the site derives from is almost certainly Network Rail's Train Describer (TD) feed. This feed reports the headcodes for signalling berths across the layout. The signalling system will normally step headcodes automatically as the train activates successive track circuits or operates axle counters in the track.

The Train Describer can only report headcodes in berths, and berths might be quite long! It certainly doesn't provide second-by-second train progress, so this site's mapping engine is likely doing some proprietary interpolation to make the train position indicators appear to "move" in real time to give the illusion of trains making progress. (Whatever the inputs to their algorithm/model are, their calling it "AI" loses all technical specificity.) This interpolation may be based on line speed, perhaps the observed average time a headcode normally remains in a given berth, allowing them to derive a typical 'average speed' for that berth or section.

If it was me designing this, I'd expect a mixture of the train class, the rolling stock and line speed to give a good estimator of the train's current position in block. You then have to make a product decision to decide what to do if you miscalculated train position – do you make staccato jumps of the train position indicators on the map if you got it wrong, or do you somehow try to smooth your error out over another period to avoid indicators suddenly moving?

In other areas of the country, train position may be reported by GPS on equipped units, or in some areas, the passage of trains is dependent on manual reports by the signaller, so the map may not have much real-time data to infer train position from. I find it highly unlikely that they're deriving much accurate data in real time from smartphone apps, but it could be a (noisy, incomplete) set of inputs to improve their model of how trains typically make progress through particular berths.

jurf 1 hour ago||
If you’d like to take a look at how one of the older Victorian mechanical signal boxes on this map (still) work, I can wholeheartedly recommend Tom Scott’s recent video on signalling in Britain [1].

[1]: https://youtu.be/omYfLDlt-MA

drej 7 hours ago||
There's one for the Czech network (one of the densest in the world, if not the densest) https://grapp.spravazeleznic.cz
butterknife 5 hours ago|
And obligatory one for Slovakia with much better UX.

https://mapa.zsr.sk/index.aspx

And Polish one, still a gen or two behind just like their rail network. It needs to be said they are investing heavily to bring it up to scratch.

https://portalpasazera.pl/MapaPociagow

BoardsOfCanada 36 minutes ago||
I have to say that it was surprisingly snappy when selecting a train or scrolling the map.
Tmpod 1 hour ago|
Still barebones, but there are two emerging projects for Portugal's (passenger) trains:

- https://comboios.live

- https://comboios.ruicosta.pt

More comments...