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 22 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.
> 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.
Meanwhile, other engineers are working on reducing the vibrations.
RobinL 21 hours 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 1 days ago [-]
I wonder what app has allow location on all the time and is feeding them their data
bcraven 1 days ago [-]
"Acquired by Trainline in 2023, Signalbox works with organisations across the rail ecosystem to improve customer information and operational awareness."
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.
You're missing the fact that the system is also divided into explicit signal blocks and those blocks do report train presence to a centralized system[1]. I am not certain if they want to share that information, but if someone got serious about building a system like signalbox I'd expect that NetworkRail would either offer their data, a degraded version of their data on a lag for security reasons, or consider those security reasons so serious that they'd attempt to prohibit deriving that data from cell signals.
1. Mostly, some signal blocks are still entirely manually managed but, IIRC, at this point those manually managed segments are low traffic areas where only one train is allowed into the block group at a time even if the old signal management systems would allow multiple trains.
though interpreting it isn't the easiest thing in the world...
munk-a 17 hours ago [-]
That is fair - though at least they've well defined their standard. It'll be easier than trying to parse that data out of HTML with regexes at least.
ButlerianJihad 14 hours ago [-]
Before he was hired by a San Diego-based defense contractor, my maternal grandfather worked on the railroads as a pipe-fitter, and he designed and built for me a high-quality Lionel model railroad in his home, before he passed away. It even had those little smoke-generating tablets that you could drop into the smokestack. I was only six years old.
This year, I was curious about whether I could track freight trains in my region or nearby, in real-time, and perhaps more details like what sort of cars were linked in the train, how many locomotives, what sort of freight they were carrying, etc.
After a few fruitless searches for this tracking info, I realized that the same info that would be "recreational" for me would be "operationally valuable" to any domestic terrorist cell or motivated insurrectionist, as well.
Trains derail all the time, we are told, and trains are robbed blind increasingly often, so I am sure there is some sort of illicit/underground tracking that takes place already, but for now, I must content myself with noticing trains using my own eyes and ears. The freight line next door is inhibited from sounding their horns except in emergencies. And thankfully, I find freight-train and light-rail noise to be calming and soothing, even at 3:30am...
AJRF 1 days 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 1 days 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.
This is matching your phone's location to the already public train data.
AJRF 1 days ago [-]
> This is matching your phone's location
But what is getting that?
Liquid_Fire 1 days 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 1 days ago [-]
so an empty train does not show up?
Liquid_Fire 1 days 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 1 days ago [-]
of course, sry, I didn't read the descriptions. Thanks for clarification!
Hikikomori 1 days ago [-]
Does a train exist if you are not on it?
1 days ago [-]
ascorbic 17 hours ago [-]
The location of the train comes from trackside sensors and is available as a free API. It doesn't give actual lat/lon – it only shows when it went past a particular checkpoint. The part that needs location permission is the one that works out which train you are on. It doesn't use that to produce the main map, it's just to work out which train you are likely to be on.
Havoc 15 hours ago [-]
Some TFL stations and trains have WiFi that has tracking in the ToS.
The relatively benign kind though. They use it to figure out congestion and station use etc
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.
1 days ago [-]
KlutzySofa 1 days ago [-]
The title matters a lot. Without "real-time" this submission has likely gotten the same lack of attention.
spacedcowboy 1 days 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).
goodcanadian 18 hours ago [-]
It may simply be that the language of HN is English, so more people here are, in fact, interested in UK train networks. The moving bits on this site are guesstimated based on schedules and delays and not based on real position information.
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 24 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 1 days 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.
jimnotgym 18 hours ago [-]
Cool app with some useful features.
Here is my custom map of UK trains that are affordable
Hey wait a minute, there isn't any train on any of these maps!
jimnotgym 16 hours ago [-]
Thank you for confirming that it is working correctly
ant6n 4 hours ago [-]
Now do cars!
Every car that doesn't use any subsidies. Every car that's lifecyle CO2-neutral. Etc.
jimnotgym 3 hours ago [-]
Are you implying in anti-train?
I think trains should be subsidised. Business needs its workers moved around, so central taxation should pay for that benefit. I just don't think those subsidies should go into train company profits.
I don't think me being annoyed that an object moving at 70 mph can't get a movement in air is an anti train stance either. It is a swipe at the people who sealed up the windows without a plan b.
In a couple of weeks I'm going 300 miles on a work trip on a route that is perfectly well served by train... but I'll take the car because it is half the price, so why give up the convenience?
Looks neat! But it can use a better clustering approach when the map is zoomed out, the crowed arrows doesn't communicate much apart from their is activity, maybe some approaches could be to not show arrows at high level only connecting lines with maybe the arrow collapse into a lesser short form like how google maps collapse icons at higher zooms to small does and the trick is to add a heavy white stroke which adds a nice separation when it gets crowded, just some 2 cents. But nice work man!
robin_reala 1 days ago [-]
This only seems to be standard overground trains. If you add in metro networks like the London tube, or light rail / trams like in Manchester, then you’d get at least hundreds more.
jordand 1 days ago [-]
The map includes metros across the Tyne and Wear Metro in NE England, and while its not perfect, it's by far the most useful train live tracking I've ever seen. There's quite a few places in the UK with different rail systems that don't fit together (and have apps of varying quality/usefulness)
jillesvangurp 21 hours 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 21 hours 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.
Dutch (and Dutch-bound) rail network overview: https://treinposities.nl/
And the equivalent for buses: https://busposities.nl/
Not all of them have GPS trackers, so some positions are guessed.
There's functionality for this in the official Dutch Railways app, but it looks like they didn't bother putting that onto their website. There is a common source of open data for most of these details, but I don't find the docs to be very complete.
JeremyBarbosa 1 days ago [-]
Wow! https://treinposities.nl/ even shows historical positions since 2019. Feels like something you'd only see in a cheesy murder mystery.
This one is incredible with its smooth animations and the ability to ride along with a train.
marking-time 14 hours ago [-]
Cool ... I'm a sucker for maps. I checked at 4:41 PM PDT (utc-7) and saw a _bunch_ of trains around London. What are all those people doing riding trains at 12:41 AM London time?_
[edit: added PM]
rsynnott 10 hours ago [-]
I think London commuter trains generally finish up around that time.
This is fairly typical for commuter trains in general, really; a last train time of midnight to 1 am, resuming around 5am, is common. 24 hour commuter trains are relatively rare, as the volume isn't there and they tend to do track maintenance at night.
mhandley 13 hours ago [-]
Coming back from the pub? At least when I'm on a train at 12:41am, that's usually the reason.
donohoe 1 days ago [-]
Very nice! I’m making one for NYC subway. It’s still in-progress and animations need a lot more work. Next steps was to adjust the size and overlay it on a proper map.
This is great - thank you! There is no background map (Firefox) but its still very clear and fun.
PS. If you are taking a feature request, I immediately double-clicked on my line to try to focus only on that (i.e. hide all the other lines). So that might be useful for others.
parkersweb 1 days ago [-]
Bit puzzled by some of the station data. This train:
is a train from Cambridge to Kings Cross - and in the side panel it shows it as calling at the new Cambridge South station. But Cambridge South isn't shown on the map. That's kinda understandable (because it opened a week ago), but Cambridge North (which opened in 2017) also isn't shown on the map. Neither are offered in any of the auto-complete dropdowns?
I'm wondering if the station data a static dataset which hasn't been updated in a long time?
greengreengrass 1 days ago [-]
It's probably a static feed, and they've probably had to do some lifting to define the layout and map that to the raw data they get from Network Rail, and they've probably not updated it for newly opened stations. There is a station near me that's been open for many years that isn't shown there either.
There are many different alphabet-soup coding systems used across Network Rail, retailing systems, and the wider railway industry to identify locations on the network. Station names will often be different in different databases; look at any station with an apostrophe in and you'll find it inconsistently named in different places.
lewispollard 23 hours ago [-]
Yeah it only seems to show small station near me, and not the main city stations, not sure why but it's very incomplete, and not related to age. For example Sheffield station isn't on the map, and that opened in 1870.
sschueller 1 days ago [-]
Shameless self-promotion: I make a departure board for the Swiss public transportation network: https://www.stationdisplay.com/
xeetzer 24 hours ago [-]
A bit of feedback on the Try it out section:
- So for some stations (most?) it shows that all trains go to the selected station, nowhere else.
- Also the search show only one station at a time instead of the multiple that could match the search. And even if we typed the whole station name, it might match another station, which mean the station is not selectable at all.
sschueller 18 hours ago [-]
Thank you for your feedback. Saddly at this time the try out widget is not feature complete as the display. I may remove it completely as it gives a false impression of what the display can do.
panick21_ 1 days ago [-]
I suggest you adjust your search results based on population. If I search for 'Luzern' it suggests 'Eschenbach'.
pmg101 1 days ago [-]
I had to press the Back button a LOT of times to get back to HN!
davidpapermill 23 hours ago [-]
Click and hold the back button.
pmg101 19 hours ago [-]
My back button is actually a triangle at the bottom left of my Android screen so I don't think that works, but it's a great hack to know for desktop and I'll remember it! Much obliged
davidpapermill 23 hours ago [-]
Are the trains located where the urban areas are, or are the urban areas built around the train network?
It's chicken and egg question, but in Manchester and London it's very clear that mass transit led to urban development, rather than the other way around.
It's very surprising that cities like Leeds have no mass transit at all, and sizeable cities like Liverpool and Birmingham don't have much.
ascorbic 17 hours ago [-]
Unsurprisingly they mostly run trains to places where people live, but there is some influence the other way too. New commuter rail lines have historically lead to more development around the stations (e.g. Metro-land 100 years ago https://en.wikipedia.org/wiki/Metro-land), and in cases where a station is built for reasons other than there being a centre of population (e.g. because it's an important junction) then that does also tend to lead to houses being built. Of course in more recent times this hasn't happened because you can hardly ever build outside of existing conurbations, but that is changing and several new towns are being planned for new or existing train stations.
rsynnott 10 hours ago [-]
A bit of both. Adamstown, a new (2006) suburb of Dublin, is a very obvious example; it was planned on the basis that it was on a train line, and a station was built as part of the initial development. Less dramatically, you tend to see densification around train and tram networks.
It appears to have the same data that you see on the staff displays at train stations. The site can be a bit hard to navigate though.
jurf 21 hours 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].
Basically all of Europe, with varying levels of detail.
olluk 1 days ago [-]
It's pretty good, my 16 y.o. son will be stuck in it for many hours. I like that you can select a train and see its stops. It would be equally awesome to select a station and see the train arrivals/departures board.
alphalima 19 hours ago [-]
There is definitely some smoke and mirrors to this. I watched a stationary train next to me get about a kilometre away before it started moving in real life.
very cool. Unrelated but anytime im looking at a map be it city roads, rails subway, etc i wish there was a way to filter the layers based on construction date.
I would like to be able to see when each road/section was built. I assume with GoogleEarth and other databases it should be possible to run some kind changelog comparison and do this at scale for at least the last 20 years or so.
BoardsOfCanada 20 hours ago [-]
I have to say that it was surprisingly snappy when selecting a train or scrolling the map.
a_c 1 days ago [-]
Off-topic, I don't get why people still use a www subdomain, especially so in this case, www.map. Conway's Law in action?
jaffa2 1 days ago [-]
why dont you get it? i dont' get why you dont get it.
butz 1 days ago [-]
It would be amazing if someone could visualize this data in Railroad Tycoon or Transport Tycoon game engine.
I can tell it's not accurate because it has half the trains marked as on time.
Reality is far more depressing. You'd also need to add ghostly white for cancelled and bus icons for replacement buses. Why do I live here god. Why can't we have a functional train network like literally any other civilised country.
dofm 1 days ago [-]
More than half of British trains do run exactly on time (within the scheduled minute). It's quite high — over 65%. Over 85% arrive within three.
It's a bit massaged in some cases e.g. Transpennine, who have only recently been forced to stop abusing P-coding to pre-cancel trains that would have been significantly delayed. So I think those figures may take a dip.
But re: civilised countries: Germany's rail service is effectively significantly less punctual than ours; regional services are OK, about as good as ours, but if you need a longer haul service for any part of your journey you will have a very much worse experience. France is a bit more punctual on long-haul, I think; they average better within-the-minute punctuality on TGV, but regionally it is not better than the UK, it is worse. Italy (in some senses the most civilised country on earth) has poor train reliability.
Delays on UK networks are in many case due to very fundamental, long term issues that are hard to resolve. Rural lines that are single-track for geographic reasons, for example — where it's a choice of either single track or no train. And there are some absolutely pathological problems like the Borough Market Junction, which has been a cause of severe structural delays for about 140 years, in part because the only way to solve it is to destroy historic parts of London.
I personally do not think delays are the biggest problem in UK rail; ticket prices are. The slow return of train services to various forms of public ownership may help there, but we need the ROSCOs too. We need to stop what privatisation did. Perhaps we will.
ifwinterco 1 days ago [-]
Some ticket prices are crazy, but the issue is a lot of trains are already very busy especially at the weekends, even with those prices.
If trains were made cheaper, some of them would become extremely unpleasant to use. In an ideal world, we'd have both more capacity on the busy routes and cheaper tickets, but that will need a lot more work than just nationalising the train companies.
(Or just fewer people would solve all these problems, but that doesn't look likely to happen...)
greengreengrass 24 hours ago [-]
> If trains were made cheaper, some of them would become extremely unpleasant to use.
Yes, it is a fact of modern life that one reason there's no political will to reduce ticket prices is that it's an effective pricing mechanism for limiting demand or pushing travellers to other modes of transport to avoid further overcrowding – as perverse as that sounds for a rail network.
nickdothutton 11 hours ago [-]
Reminder: In the UK we do not know where the trains are. We know what section of track they are on, but not where within the section. A section could be miles long. To know more precisely, we telephone the (manned) signal boxes to ask if they can see the train or how recently it passed them, and occasionally phone the driver on his mobile to ask them directly.
_joel 1 days ago [-]
Used this many times during the longer commutes across country, works well.
philipwhiuk 1 days ago [-]
Topping out at 10 minutes delay for the most severe marker colour is an interesting choice.
xnorswap 1 days ago [-]
It would be better if they were aligned to the delay repay thresholds.
windowliker 1 days ago [-]
IIRC 10 minutes is the minimum threshold for a train to be officially considered as delayed.
mschuster91 1 days ago [-]
Certainly would not work out in Germany LOL
ErroneousBosh 1 days ago [-]
It's amazing how easily you can tell when you cross the border from OBB to DB ;-)
A couple of obvious observations:
* Does not include Northern Ireland or the Isle of Man, both of which have notable rail networks (as they are not in GB).
* Does not include heritage railways. There are a number of other railways on here which are not marked but offer tourist travel.
rsynnott 10 hours ago [-]
NI gets slightly messy; do you include the Enterprise service to Dublin? If so, only the ones run by Translink, or also the ones run by Irish Rail? (The Dublin-Belfast service is a particularly weird train service in that it has _two_ operators, with joint ownership of the rolling stock).
You can also buy tickets from either operator, but you have to buy tickets from the operator in the country that you're leaving (even if they're return tickets). This leads to the interesting situation where a Dublin->Belfast->Dublin return journey a couple of weeks out costs 28EUR, but a Belfast->Dublin->Belfast return journey on the same day costs 30GBP (~35EUR).
And if you're over 65 and live in Northern Ireland, you can use it for free, but you have to be over 66 to use it for free if you live in the Republic of Ireland.
Currently it's just the one cross-border link, but the 2050 rail plan calls for two more, so they'll presumably at some point have to make all this less weird.
nephihaha 53 minutes ago [-]
NI gets very messy! They had so many lines once and between the Troubles and cuts, they lost many of them. (The cross-border canal system was even more neglected.) The NI trains run on a different gauge from here (this came up yesterday when someone was talking about the possibility of a train between Scotland and there.
The train to Dublin is way slower than it should be. The trains within the Republic tend to be much better. That said, Letterkenny's most logical rail connection would be to Derry just due to the lay of the land.
rsynnott 25 minutes ago [-]
> The train to Dublin is way slower than it should be.
(The Rail 2050 plan plans to bring it dow further to 90 minutes, and up the frequency to once every 30 mins from once an hour, but that's fairly speculative at this point.)
inglor_cz 1 days ago [-]
I remember my colleague from MFF UK, Robert Babilon, producing his first real-time map of Czech trains in 2004.
The page, called Babitron, still exists and still keeps that delightful 2004 look. I visited it a few days ago. Unfortunately today there is a message "We are moving Babitron to a different server", so the link isn't working.
For the similarly confused: it displays times in your local browser time zone, not the time zone of the actual train. I'm pretty sure this is an oversight since there's no universe in which I want train times not in their native time zone.
24 hours ago [-]
k2xl 1 days ago [-]
Would be cool if these could animate/interpolate to their next position
_joel 1 days ago [-]
they do?
IshKebab 1 days ago [-]
Is this actually based on GPS (or similar) on the trains, or is it just interpolating signal times (which are waaaay coarser)?
greengreengrass 1 days ago [-]
Not affiliated with the site, but it's almost certainly just the Train Describer feed from Network Rail to observe headcodes stepping through berths, and then doing some proprietary interpolation within berths to guess where the trains are, probably using fairly coarse inputs like train class, rolling stock type and line speed. It's possible it's not even doing that, and they have just built a model that observes typical passage times between berths and they average that out.
TRUST (reporting system that describes train movements as they've happened) does accept updates by means other than the Train Describer, which might include GPS if the unit is equipped, and in many areas is dependent on signallers making manual reports (which may not be made immediately). They might also use TRUST as a data source, especially in non-Track Circuit Block areas. The rate of GPS updates is not going to be anywhere near as frequent as those train position indicators that appear to move here in "real time" across the map, so however they combine data sources, their site is trying to be clever in guessing train location.
It goes without saying: this sort of map is highly likely to be wildly inaccurate and isn't useful for anything safety-critical.
IshKebab 23 hours ago [-]
Do trains have real time position sensing and reporting now? Feels to me like that should be something that could (and should) have been done 20 years ago at least. You don't even need GPS - even wheel-based odometry should work very well. Visual odometry can be used to detect wheels slipping if necessary. Hell you could probably count sleepers.
greengreengrass 14 hours ago [-]
I believe some Tube stock uses wheel revolution counters to track where the train is and trigger announcements, although a lot of signalling will be going over to using balises to tell the trains where they are (if not already) and to provide supervision.
waiwai933 22 hours ago [-]
Newer fleets will have GPS units on board that report back to Control, but it's not universal and I don't believe there are industry-wide standards or APIs. Signalbox is definitely extrapolating from TD/TRUST/Darwin, not GPS reports.
singularity2001 22 hours ago [-]
Now "Jetlag the game" HAS to shoot their next episode over there
scoot 1 days ago [-]
I live next to a railway line so I'm in the (not particularly unique, and definitely not enviable) position to compare what's on the map to "IRL" trains, and I can tell you it's as good as useless.
- Trains appearing on the map that aren't anywhere to be seen on the tracks.
- Trains on the tracks that don't appear on the map.
- Trains moving away from the station that according to the timetable view shouldn't have left the station yet.
- Trains on the map seemingly stopping and changing direction, only to reverse course once again.
The map shows a single line segment for what is in fact a multi-line stretch of railway. That's okay as a simplification (I guess), but the icons aren't pinned to the line, so appear to be driving off the track, or even on the adjacent street.
As for realtime - even if the data was accurate and timely, a 2Hz refresh rate most definitely isn't realtime.
Sorry if it seems like I'm shitting on it - it's a fun toy, but I wouldn't depend on it for anything important.
greyday 22 hours ago [-]
I'm also close enough to a railway line to see the trains. There are two lines near us - a fast line (that I can see) and a slow line on the other side of the estate. The map showed a train moving (quickly) on the slow line, at just about the time I saw it fly past out my window. So it isn't even accurate as to which line the train is on.
Possibly useful as a funky station arrival board, but overlaying that data on an actual map is a bit misleading.
greengreengrass 1 days ago [-]
There's no way its input data is anywhere near adequate for the rate the position indicators refresh, so it's taking some base data and then just... guessing the rest.
windowliker 1 days ago [-]
>it's a fun toy, but I wouldn't depend on it for anything important.
This could be said for the rail network as a whole.
Neglect and underinvestment over the last 60+ years has left it in a sorry state, and debacles such as HS2 show how government has no ability to deliver proper material upgrades to the ageing infrastructure and service. The direction of travel (scuse the pun) has been clear since the Beeching cuts: roads are the priority. Add to that Neoliberal divestment policies and we end up where we are today: overcrowded, filthy, ugly trains barely fit for cattle transport and chronically understaffed stations and train crews. Not to mention the extortionate prices for a ticket to travel on the network.
I adore rail travel, but dread the necessity of using it any time I go on a journey.
addysan 24 hours ago [-]
yeahh
steamsloth 1 days ago [-]
Perhaps I’m going mad based off the praise heaped in other responses, but - something seems wildly off with the locations?
I just witnessed a London Liverpool street service plough through the M25 motorway - about 40 miles south of it's typical route and 5 miles south of the nearest actual railway.
Dozens of the trains seem to be traversing through the English channel/La Manche towards the north sea.
In fact the number of trains actually tracking a rail line (and this is outside of the cities where the tube/metro might obscure this) seems in the minority. Most seem to be going straight through the middle of farmers fields on some obscure course unrelated to theirs.
Cider9986 1 days ago [-]
The surveillance is... quite disturbing.
edit: /s
appreciatorBus 1 days ago [-]
How is it surveillance for an organization that operates a fleet of trains, to know where the trains are?
Even if there were no such thing as GPS, simply the act of running a fleet of trains or trucks or buses on a schedule, means that anyone could do a bit of math and roughly calculate the position of every vehicle based solely on the schedule.
greengreengrass 24 hours ago [-]
This information is derived from open signalling data, which the signalling system _has_ to track to operate trains safely and identify their locations.
The reality is the illusion of pinpoint accuracy is a figment of this site's imagination; this site is using some creative license to guess the precise location of trains.
giarc 1 days ago [-]
How? Knowing the location of trains is pretty important.
Edit: I've reviewed your last few dozen comments, and too many of them are inflammatory with invocations of race politics. Other recent comments are low-substance snark. We need all this to stop. I can see from earlier comments that you know what kind of discussion is appropriate and inappropriate on HN. You've made good comments in the past so I don't want to ban you, but we can't let this kind of activity continue. HN is only a place where people want to participate because others make the effort to contribute positively and observe the guidelines. Please make an effort to raise the standards rather than drag them down.
_joel 1 days ago [-]
Cop? what? Also there's British Transport Police.
ErroneousBosh 1 days ago [-]
This map is for the UK, not the US. We don't have ICE here.
pjc50 1 days ago [-]
No, that's Deutsche Bahn.
(probably an inappropriate place for a joke, but at least it's about trains)
nephihaha 1 days ago [-]
Most of the UK. Northern Ireland's network is not included.
jjgreen 1 days ago [-]
Quite right, "UK" is an abbreviation for "The United Kingdom of Great Britain and Northern Ireland"
nephihaha 21 hours ago [-]
I could also mention Manx Railways, which are historic heritage lines, but there are at least three railway lines there that are mostly used by tourists and some commuters.
The Isle of Man has a curious relationship with the UK. As a Manxman once said to me, the government there is British when it feels like it and not British when it feels like it.
rsynnott 10 hours ago [-]
The Isle of Man is not strictly speaking part of the UK at all.
nephihaha 49 minutes ago [-]
Like I say, the Manx government is not British when it suits it (offshore banking) but is British when it does suit it (defence). Their relationship is complicated, and often contradictory.
Apart from the Commonwealth Games, there is little effort to set up a proper national sporting infrastructure like the Faroe Islands have. Their football team does not get out much and if they have a national rugby side I've never heard of it.
Of course the black people were let go. After all, they did nothing wrong, they just assaulted a white guy.
iso1631 1 days ago [-]
It's a reference to the murder of Henry Nowak, a sad example of knife crime which exists in the uk, and of individual police officers who failed to render basic first aid.
The family not only lost their son, but then had to see his name used to further the global hatred of the farage types
crimsoneer 1 days ago [-]
I suspect it's linked to this which is the latest example being used.
And if you check on/off the other options, you get way more informations.
https://maps.trafimage.ch/ch.sbb.netzkarte?lang=en&baselayer...
- 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.
<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/>
Hmm, that's...interesting?
https://www.signalbox.io/news/southeastern-launches-track-my...
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.
1. Mostly, some signal blocks are still entirely manually managed but, IIRC, at this point those manually managed segments are low traffic areas where only one train is allowed into the block group at a time even if the old signal management systems would allow multiple trains.
though interpreting it isn't the easiest thing in the world...
This year, I was curious about whether I could track freight trains in my region or nearby, in real-time, and perhaps more details like what sort of cars were linked in the train, how many locomotives, what sort of freight they were carrying, etc.
After a few fruitless searches for this tracking info, I realized that the same info that would be "recreational" for me would be "operationally valuable" to any domestic terrorist cell or motivated insurrectionist, as well.
Trains derail all the time, we are told, and trains are robbed blind increasingly often, so I am sure there is some sort of illicit/underground tracking that takes place already, but for now, I must content myself with noticing trains using my own eyes and ears. The freight line next door is inhibited from sounding their horns except in emergencies. And thankfully, I find freight-train and light-rail noise to be calming and soothing, even at 3:30am...
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?
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
I think you are missing the point - what is collecting data on all those trains.
This is matching your phone's location to the already public train data.
But what is getting that?
"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.
The relatively benign kind though. They use it to figure out congestion and station use etc
Past similar HN submission got no attention, whereas the UK's top page. Interesting !
https://news.ycombinator.com/item?id=45249351
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.
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).
https://asm.transitdocs.com/ https://amtraker.com/map
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.
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.
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.
Here is my custom map of UK trains that are affordable
https://www.map.signalbox.io/?location=@52.86376,-2.32537,4....
And here is my map of UK trains that aren't subsidised despite being 'private companies'
https://www.map.signalbox.io/?location=@52.86376,-2.32537,4....
And here is a map of trains that use the fact they are moving quickly through the air to provide some semblance of ventilation
https://www.map.signalbox.io/?location=@52.86376,-2.32537,4....
Every car that doesn't use any subsidies. Every car that's lifecyle CO2-neutral. Etc.
I think trains should be subsidised. Business needs its workers moved around, so central taxation should pay for that benefit. I just don't think those subsidies should go into train company profits.
I don't think me being annoyed that an object moving at 70 mph can't get a movement in air is an anti train stance either. It is a swipe at the people who sealed up the windows without a plan b.
In a couple of weeks I'm going 300 miles on a work trip on a route that is perfectly well served by train... but I'll take the car because it is half the price, so why give up the convenience?
I am pro train, anti the current setup
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
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.
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.
There's functionality for this in the official Dutch Railways app, but it looks like they didn't bother putting that onto their website. There is a common source of open data for most of these details, but I don't find the docs to be very complete.
London: https://londonunderground.live
this reminds me of the London specific equivalent posted awhile back: https://londonunderground.live (previously discussed https://news.ycombinator.com/item?id=43651390).
[edit: added PM]
This is fairly typical for commuter trains in general, really; a last train time of midnight to 1 am, resuming around 5am, is common. 24 hour commuter trains are relatively rare, as the volume isn't there and they tend to do track maintenance at night.
https://donohoe.dev/subway/map/
PS. If you are taking a feature request, I immediately double-clicked on my line to try to focus only on that (i.e. hide all the other lines). So that might be useful for others.
https://www.map.signalbox.io/?train=202607066710114&location...
is a train from Cambridge to Kings Cross - and in the side panel it shows it as calling at the new Cambridge South station. But Cambridge South isn't shown on the map. That's kinda understandable (because it opened a week ago), but Cambridge North (which opened in 2017) also isn't shown on the map. Neither are offered in any of the auto-complete dropdowns?
I'm wondering if the station data a static dataset which hasn't been updated in a long time?
There are many different alphabet-soup coding systems used across Network Rail, retailing systems, and the wider railway industry to identify locations on the network. Station names will often be different in different databases; look at any station with an apostrophe in and you'll find it inconsistently named in different places.
- So for some stations (most?) it shows that all trains go to the selected station, nowhere else.
- Also the search show only one station at a time instead of the multiple that could match the search. And even if we typed the whole station name, it might match another station, which mean the station is not selectable at all.
It's chicken and egg question, but in Manchester and London it's very clear that mass transit led to urban development, rather than the other way around.
It's very surprising that cities like Leeds have no mass transit at all, and sizeable cities like Liverpool and Birmingham don't have much.
It appears to have the same data that you see on the staff displays at train stations. The site can be a bit hard to navigate though.
[1]: https://youtu.be/omYfLDlt-MA
- https://comboios.live
- https://comboios.ruicosta.pt
Basically all of Europe, with varying levels of detail.
I would like to be able to see when each road/section was built. I assume with GoogleEarth and other databases it should be possible to run some kind changelog comparison and do this at scale for at least the last 20 years or so.
Reality is far more depressing. You'd also need to add ghostly white for cancelled and bus icons for replacement buses. Why do I live here god. Why can't we have a functional train network like literally any other civilised country.
It's a bit massaged in some cases e.g. Transpennine, who have only recently been forced to stop abusing P-coding to pre-cancel trains that would have been significantly delayed. So I think those figures may take a dip.
But re: civilised countries: Germany's rail service is effectively significantly less punctual than ours; regional services are OK, about as good as ours, but if you need a longer haul service for any part of your journey you will have a very much worse experience. France is a bit more punctual on long-haul, I think; they average better within-the-minute punctuality on TGV, but regionally it is not better than the UK, it is worse. Italy (in some senses the most civilised country on earth) has poor train reliability.
Delays on UK networks are in many case due to very fundamental, long term issues that are hard to resolve. Rural lines that are single-track for geographic reasons, for example — where it's a choice of either single track or no train. And there are some absolutely pathological problems like the Borough Market Junction, which has been a cause of severe structural delays for about 140 years, in part because the only way to solve it is to destroy historic parts of London.
I personally do not think delays are the biggest problem in UK rail; ticket prices are. The slow return of train services to various forms of public ownership may help there, but we need the ROSCOs too. We need to stop what privatisation did. Perhaps we will.
If trains were made cheaper, some of them would become extremely unpleasant to use. In an ideal world, we'd have both more capacity on the busy routes and cheaper tickets, but that will need a lot more work than just nationalising the train companies.
(Or just fewer people would solve all these problems, but that doesn't look likely to happen...)
Yes, it is a fact of modern life that one reason there's no political will to reduce ticket prices is that it's an effective pricing mechanism for limiting demand or pushing travellers to other modes of transport to avoid further overcrowding – as perverse as that sounds for a rail network.
Amongst other things it shows all the signalling segments so you can actually see where your train is when waiting e.g. https://traksy.uk/live/T+CDU+BRI+d+@2026-07-06T15:00/S+G1548...
You can also buy tickets from either operator, but you have to buy tickets from the operator in the country that you're leaving (even if they're return tickets). This leads to the interesting situation where a Dublin->Belfast->Dublin return journey a couple of weeks out costs 28EUR, but a Belfast->Dublin->Belfast return journey on the same day costs 30GBP (~35EUR).
And if you're over 65 and live in Northern Ireland, you can use it for free, but you have to be over 66 to use it for free if you live in the Republic of Ireland.
Currently it's just the one cross-border link, but the 2050 rail plan calls for two more, so they'll presumably at some point have to make all this less weird.
The train to Dublin is way slower than it should be. The trains within the Republic tend to be much better. That said, Letterkenny's most logical rail connection would be to Derry just due to the lay of the land.
There is, FWIW, a plan to improve that (https://www.irishtimes.com/ireland/2026/06/22/funding-to-cut...), though mostly on the Republic side of the border.
(The Rail 2050 plan plans to bring it dow further to 90 minutes, and up the frequency to once every 30 mins from once an hour, but that's fairly speculative at this point.)
The page, called Babitron, still exists and still keeps that delightful 2004 look. I visited it a few days ago. Unfortunately today there is a message "We are moving Babitron to a different server", so the link isn't working.
https://kam.mff.cuni.cz/~babilon/zpmapa2
TRUST (reporting system that describes train movements as they've happened) does accept updates by means other than the Train Describer, which might include GPS if the unit is equipped, and in many areas is dependent on signallers making manual reports (which may not be made immediately). They might also use TRUST as a data source, especially in non-Track Circuit Block areas. The rate of GPS updates is not going to be anywhere near as frequent as those train position indicators that appear to move here in "real time" across the map, so however they combine data sources, their site is trying to be clever in guessing train location.
It goes without saying: this sort of map is highly likely to be wildly inaccurate and isn't useful for anything safety-critical.
As for realtime - even if the data was accurate and timely, a 2Hz refresh rate most definitely isn't realtime.
Sorry if it seems like I'm shitting on it - it's a fun toy, but I wouldn't depend on it for anything important.
Possibly useful as a funky station arrival board, but overlaying that data on an actual map is a bit misleading.
This could be said for the rail network as a whole.
Neglect and underinvestment over the last 60+ years has left it in a sorry state, and debacles such as HS2 show how government has no ability to deliver proper material upgrades to the ageing infrastructure and service. The direction of travel (scuse the pun) has been clear since the Beeching cuts: roads are the priority. Add to that Neoliberal divestment policies and we end up where we are today: overcrowded, filthy, ugly trains barely fit for cattle transport and chronically understaffed stations and train crews. Not to mention the extortionate prices for a ticket to travel on the network.
I adore rail travel, but dread the necessity of using it any time I go on a journey.
I just witnessed a London Liverpool street service plough through the M25 motorway - about 40 miles south of it's typical route and 5 miles south of the nearest actual railway. Dozens of the trains seem to be traversing through the English channel/La Manche towards the north sea.
In fact the number of trains actually tracking a rail line (and this is outside of the cities where the tube/metro might obscure this) seems in the minority. Most seem to be going straight through the middle of farmers fields on some obscure course unrelated to theirs.
edit: /s
Even if there were no such thing as GPS, simply the act of running a fleet of trains or trucks or buses on a schedule, means that anyone could do a bit of math and roughly calculate the position of every vehicle based solely on the schedule.
The reality is the illusion of pinpoint accuracy is a figment of this site's imagination; this site is using some creative license to guess the precise location of trains.
Edit: I've reviewed your last few dozen comments, and too many of them are inflammatory with invocations of race politics. Other recent comments are low-substance snark. We need all this to stop. I can see from earlier comments that you know what kind of discussion is appropriate and inappropriate on HN. You've made good comments in the past so I don't want to ban you, but we can't let this kind of activity continue. HN is only a place where people want to participate because others make the effort to contribute positively and observe the guidelines. Please make an effort to raise the standards rather than drag them down.
(probably an inappropriate place for a joke, but at least it's about trains)
The Isle of Man has a curious relationship with the UK. As a Manxman once said to me, the government there is British when it feels like it and not British when it feels like it.
Apart from the Commonwealth Games, there is little effort to set up a proper national sporting infrastructure like the Faroe Islands have. Their football team does not get out much and if they have a national rugby side I've never heard of it.
Of course the black people were let go. After all, they did nothing wrong, they just assaulted a white guy.
The family not only lost their son, but then had to see his name used to further the global hatred of the farage types
https://www.ndtv.com/world-news/uk-man-was-assaulted-by-atta...
81% of the UK is white
70% of murder victims were male.
So reality is that white people are less likely to be murdered than non-white people, and women are less likely to be murdered than men.
That's a pretty common racist dogwhistle, propagated by groups like Farage's Russian owner.
Out of curiousity, where are you from? I find it interesting where only people who get so exercised about the UK get their info from...