Live map of public transport in Belgium

Posted by coinfused 1 day ago

Counter194Comment78OpenOriginal

Comments

Comment by gworf 1 day ago

Similar real time traffic map for Switzerland <https://maps.trafimage.ch/ch.sbb.netzkarte?baselayers=ch.sbb...>

Comment by sbb_equals_ffs 22 hours ago

I've mentioned this before on another thread about the swiss map but for the uninitiated:

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.

Comment by mzi 21 hours ago

The app for public transportation in the Stockholm region give real time location updates for its busses, and station-to-station updates for tram and commuter trains. With the constant delays for the operator in my area it is invaluable for catching busses.

Comment by MHordecki 23 hours ago

This is a simulated map based on published transit schedules. As I’m typing this I sit on a bus that’s nowhere to be seen on the map.

Comment by nevi-me 22 hours ago

I have a crowdsourcing app [0] that powers maps like this [1] in South Africa. Where I'm able to directly or indirectly get bus feeds for agencies, I'm able to augment them and provide a hybrid of live vs scheduled services.

It's been a fun project, both the app and the site. The idea with the app's that there's often numerous commuters on a bus/train vs relying on a hard to get vehicle telemetry feed/source. So I'm trying to get a fun/friendly way of getting commuters to share their location data in exchange for shared alerts and updates on delays.

Nothing novel, if you're in a first world country lol.

[0] https://socioloza.co.za/ [1] https://movinggauteng.co.za/gautrain

Comment by crispyambulance 22 hours ago

Transit telemetry is inherently spotty on these public-facing applications.

If it's like other systems, it will resort to transit schedule estimations when data is missing and then try to sync as live data becomes available.

Comment by TeMPOraL 14 hours ago

And unfortunately, like most apps, it never bothers telling the user when the data is accurate, and when it's a guess.

Comment by Rnewbs 23 hours ago

The amazing thing about this is if you zoom into ski resorts, it looks to have the live positioning of cablecars.

Comment by twelvechairs 19 hours ago

For reference all of these generally use the gtfs standard

https://gtfs.org/

Comment by ceejayoz 1 day ago

Even five minutes late gets you a red dot. Very Swiss.

Comment by Betelbuddy 1 day ago

For Deutsche Bahn it will be just a photo....

Comment by attendant3446 1 day ago

I remember how the "live map" for public transport in Berlin was actually a map with where the transport should be, not where it actually was. At least that was the case a couple of years ago with VBB =)

Comment by pjmlp 23 hours ago

At least we can do betting on train delays.

https://www.iamexpat.de/lifestyle/lifestyle-news/new-site-al...

Comment by cgsmith 22 hours ago

A lot of the transit authorities have live maps: https://www.rvf.de/map

Comment by CorvusCrypto 1 day ago

I do see some isolated improvements whenever I travel to Germany (mostly to Frankfurt, but what is pain other than Frankfurt am Main), but yeah I sympathize here, and do hope the pushes toward better systems continue

Comment by 1718627440 16 hours ago

There is travic.app, which uses realtime data, if available.

Comment by wolvoleo 1 day ago

And yet pretty accurate :)

Comment by rrr_oh_man 1 day ago

This also doesn’t seem to move, despite the numerous AI CSS slop badges

Comment by codedokode 13 hours ago

Is it something new? I think Yandex Maps shows busses in real time since long ago (at least in large cities like Moscow). The busses have GPS and send the data in real time. I wanted to post a link but at night there are not many busses and the first ones will appear 1-2 hours later: https://yandex.ru/maps/213/moscow/transport/buses/?l=masstra...

Comment by wouterjanl 1 day ago

Awesome! Looking at the metro stop near me here in Brussels, the trains seemed stuck for a while at the station. Not impossible this was just real :) Great way to admire the density and connectivity of our public transport!!

Comment by zoobab 18 hours ago

I always complained about the lack of displays at the tram stops, now it's getting better.

Comment by ostacke 1 day ago

This thread is full of people linking similar projects for different locations. The next step must be to combine it all to a global live map. Useful for... something, I'm sure.

Comment by mips_avatar 13 hours ago

We really need some open source project to manage all the shims across the world. Like in Seattle the WSDOT API has live ferry locations but they never made a GTFS feed for, so i made my own shim for it. I feel like there needs to be some way to make the data access easier for developers.

Comment by twelvechairs 19 hours ago

Comment by dandanua 22 hours ago

The nest step would be to map every human. Shouldn't be too hard, there are only 8B of us.

Comment by Insanity 19 hours ago

Guess Flock is trying that for the US as a POC ;)

Comment by Betelbuddy 1 day ago

We should also have a hierarchy:

Platinum - Real Live Location

Gold - Live as Estimated Where It Should Be From Last Observation

Silver - Live as Estimated According to Published Schedule

You Kidding Me? - Animated JavaScript...

Comment by crispyambulance 22 hours ago

I think subway rail systems do have "real live location", but whether that information is consistently provided to public distribution for use through apps is a question mark.

I suspect most systems are a mix of your platinum, gold and silver (and kidding me).

Comment by rsynnott 19 hours ago

Lots of systems have some sort of real location data, but it can be... shaky.

In Dublin, train 'realtime location' is, AIUI, based on arrival at stations plus time-based estimate. This _usually_ works okay. Buses have transponders which register when they pass a stop. Or, ah, well, buses usually have transponders, and those transponders sometimes work. New buses sometimes lack them, as do very old buses used for covering capacity problems. If a bus without a transponder is used, they seem to just estimate where it is based on the schedule, which is useless. If a bus without a transponder is inserted out of schedule (they sometimes do this at peak time) it's totally invisible to the realtime system. Sometimes, the transponder isn't picked up, and then the bus will appear to hang around for a while and then abruptly teleport a few stops forward. Sometimes, a bus's transponder doesn't seem to start working when the bus starts up for the first few stops.

Still, it's better than when I was a kid, when you really just had the printed schedule, assuming the rain hadn't gotten to it.

Comment by ethanc8 18 hours ago

I work on the open-source application Catenary Maps:

https://maps.catenarymaps.org

It has a live map of public transport around the world, mostly showing the actual vehicle positions (although we interpolate from the estimated arrivals for some European operators). You can also click on vehicles (trains, buses, ferries, etc) to see their past and predicted future arrivals, click on a station to see its departure board, or click on a line to see its variants.

Comment by Shorel 20 hours ago

The same idea, this time for Sofia, Bulgaria.

https://livetransport.eu/#/sofia

Comment by OvervCW 1 day ago

Similar map for the Netherlands: http://ovzoeker.nl/

Comment by massenpunkt 18 hours ago

When I was traveling in Uzbekistan I found a map with live locations of busses operating in Tashkent quite useful on Yandex Map. Today I learned that similar services exist for Switzerland. Not sure though how useful this is for daily life if you have information systems at each stop and public transport that is alsmost always on time.

Comment by ognarb 1 day ago

Even more impressive: https://api.transitous.org/ (but not everything is live)

Comment by jpoesen 1 day ago

Great companion to https://irail.be, a minimalist counterpart to this site, also based on open data.

Comment by palavrov 1 day ago

Would be perfect post end of January for next FOSDEM.

Comment by krautsauer 1 day ago

For Tokyo, https://minitokyo3d.com/ is just based on a static GTFS file. Or is it realtime? Nobody knows the difference.

(I'm joking. Local trains in Tokyo area are late quite often. Doesn't matter much when there's one every <5 minutes though.)

Comment by krautsauer 13 hours ago

Sorry, wrong reply button, meant to add that here: https://news.ycombinator.com/item?id=49596821 sigh

Comment by greggman65 1 day ago

A non-live map for trains in Tokyo

https://greggman.github.io/tokyo-trains

I think the live map is cool but (1) I don't know where to get that data and (2) seeing things at 100x speed is, IMO, more interesting as a visual

It's based off schedules but only Toei's schedules are easy to get (AFAICT). I got permission for the most of the others, but I thought the visual was good as is ... mostly. Maube I'll revisit.

Comment by f6v 1 day ago

I've first seen this in Moscow around 2018 (in Google Maps) and then in Ivano-Frankovsk in 2021 (some local custom app). I think such live maps are the best use of public funds one could imagine.

Comment by georgefrowny 1 day ago

I dunno, I think there's one better use and that's funding a federated framework for this so any transport network can just plug into the system as a source and any client can plug in as a consumer.

Comment by tomtomtom777 1 day ago

Well, there is this: https://mobilitydatabase.org/ which sounds about what you're looking for, although it is still up to the client to combine the feeds its looking for.

Comment by tananaev 10 hours ago

I believe it's at least partially powered by my open source GPS tracking project - Traccar. Nice to see public access for this data.

Comment by ssernikk 1 day ago

I don't want to be negative here, just asking out of curiosity. Does anyone actually use apps/services like this? Why would it be useful?

Normally when I want to get somewhere I just use local public transport navigation app which calculates the route and shows me estimated time of when my tram or bus arrives (taking into account its GPS data). Why would I need to know live position of every vehicle in the city?

Nevertheless, cool project!

Comment by rzwitserloot 23 hours ago

I use the dutch version of this (OVInfo: https://play.google.com/store/apps/details?id=nl.skywave.ovi... ) which does have a nicer interface: You _can_ load a map and gawk at it, but by default it loads very fast and shows a list of stops/stations in order of how close they are, and clicking on them shows the up-to-the-minute (in some regions, up-to-the-second) exact departure times including any current delays.

In an public transport heavy region (lots of The Netherlands is PT heavy) this changes how you interact with public transport. You stop planning. You decide you want to go to X, so you walk to the nearest stop you know will take you to X (in contrast to someone who rarely uses PT or lives in a PT light area: They either don't know the routes and thus don't know which stop to walk to, or there is only one stop within walking distance if that), and as you walk, it takes all of about 5 seconds, literally, to know if you should walk briskly or have time for a detour or whatever. Or even check if a different stop would be more efficient.

It's powered by the same data. 'look, a map!' is visually the most interesting, and thus perhaps appropriate here, where I would assume most readers don't even live in Belgium.

Comment by edarchis 1 day ago

Absolutely, the official apps are lacking. Google maps has incorrect timetables and the TEC app doesn't give you any way of knowing when the next bus will be and where in traffic it is. I recently had a bus at say 10:00, I get there at 9:58 and wait until 10:15 for the bus. Leaving the stop and seeing the bus pass a bit later is extremely infuriating. This kind of map lets you check where the bus actually is. Not so convenient on a phone but I'll take it.

Comment by well_ackshually 1 day ago

Because there's about as many ways of taking public transit as there are users. For many, live maps are critical. I don't understand why either, but people want the "control" it offers and knowing that their bus is around the corner (it's not, the data is always over a minute stale because it goes through 5 intermediaries)

Delete that feature and you suddenly get a horde of angry users

Comment by rsynnott 19 hours ago

Got to admit, I like to see evidence that the bus actually exists and is coming.

Comment by smrtzo 1 day ago

feel like its computed from the time table and not live or am I mistaken?

Comment by lode 1 day ago

It depends.

From: https://openbaarvervoerbelgie.be/over-ons/

* For companies publishing real time positions (STIB-MIVB, TEC), live position will be shown. For companies that don't (De Lijn, NMBS/SNBC), we calculate the position based on the schedule (GTFS), corrected with published delays (GTFS-RT).

Every vehicle on the map is labeled with realtime / calculated position.

Comment by tmtvl 1 day ago

When you hover over a dot you can see whether it's the real position or whether the position is computed from the timetable with delay applied. The transparent yellow dots are computed, the opaque yellow dots are real position. Same for transparent vs opaque gray and orange dots; the blue dots all appear to be computed (makes sense, the NMBS doesn't provide real-time info about where trains are as far as I know).

Comment by Alexander-Barth 1 day ago

For most of them it says "real position" and some show a delay.

Comment by niknight 22 hours ago

Comment by jeffjeffersen 1 day ago

This is well made, would love to have this in my own country as I can never trust the actual timers on the bus stops. How do you get access to the data? Is it a public government API? How did you manage to map all the routes too?

Comment by ap-andersson 1 day ago

What country are you in?

There are a bunch of different protocols used to exchange scheduled and live transit information out there. And there are also a lot of different companies actually operating the vehicles (Transport Authorities). Sometimes several within one large city. But even if they have different systems underneath often they expose one of the popular protocols. Often there are even rules/law about certain protocols that you HAVE to support.

In USA that is mostly GTFS and GFTS-RT. I dod not think its a law but something about what you have to do to get funds maybe? I'm in Europe so my memory is foggy.

In EU I believe its NeTEx and SIRI. And every member nation needs a national hub where all transport authorities shares its data openly.

GTFS + GTFS-RT is very popular among consumer apps since its both pretty simple and pull-based. Static data is in CSV-files in a ZIP-file and the realtime data comes via Protobuf. If you check sources on the page this post is about you will se many GTFS sources. Ofc even transit systems built for the european standards can expose GTFS via a translation layer to support a broader range of consumers easily.

When it comes to signs at bus-stops there are those that are fed with this kind of data and can show both timetable data and realtime data based on the vehicles position. Here those signs are everywhere (Sweden) and I know there are plenty in the rest of Europe aswell. Outside of that I don't know if they are used as much.

Comment by jeffjeffersen 21 hours ago

I'm based in Denmark. And thanks for the detailed explanation. I've never really worked with public transit data before, but it seems like there are quite a few interesting possibilities for personal projects, especially with GTFS/GTFS-RT.

Comment by jpoesen 1 day ago

There's a "sources" button at the bottom left that seems to appear at certain zoom levels.

> "vlive is an independent app and not an official app of any government, public authority or transport operator. It is not affiliated with, nor does it represent, NMBS/SNCB, De Lijn, STIB-MIVB or TEC. All data comes from their open data; where it matters, the official sources below are authoritative."

Comment by rsynnott 19 hours ago

> as I can never trust the actual timers on the bus stops.

Assuming these show 'live' data (as opposed to the estimated times based on the schedule), it's probably the same data that apps like this would be using.

Comment by melicerte 1 day ago

[dead]

Comment by seaghost 22 hours ago

Not to downplay your effort, but design look very vibe coded.

Comment by wvh 1 day ago

Fascinating... I have a thing with maps. Does the information come from a central server that runs some open-source protocol for public transport, or is this gathered from different endpoints in different formats?

Comment by niepiekm 1 day ago

See https://zbiorkom.live/cities for a live public transport in several cities in Poland.

Comment by fuzzy2 1 day ago

Comment by grasshopper-t 1 day ago

a similar real-time map for trains in norway: https://togkart.banenor.no/

Comment by neals 1 day ago

I just figured out that on Mallorca, the busses are shown like that on Google Maps. Which to me was mind blowing. I had never seen it, it's so convenient.

Comment by yummybrainz 1 day ago

Comment by Hacker_Yogi 1 day ago

Really nice! The place names are a little hard to read especially in dark mode, other than that great job! Thanks for sharing!

Comment by loloquwowndueo 1 day ago

That’s because dark mode itself is hard to read. Use normal mode like god intended your eyes will thank you.

Comment by bronlund 21 hours ago

The creation is obviously done in dark mode!

Comment by ramon156 1 day ago

In the netherlands we have 9292 which imo is the most mature implementation.

Comment by Bahaa_BLINK 1 day ago

That's awesome, we need map to cover all over the world

Comment by embedding-shape 1 day ago

Soon we'll be needing a live map of all the live maps in the world.

Comment by luplex 1 day ago

same thing with global data (but of course not full coverage everywhere): https://travic.app

Comment by oschvr 1 day ago

Wow very useful thank you !

Comment by gregsadetsky 1 day ago

Another very global one as well - https://trains.fyi/world-map/

Comment by mci-1 1 day ago

Author here! Thanks for posting the app!

Two notes on what you are looking at:

Not every vehicle is a live position. STIB-MIVB and TEC publish vehicle positions and those are shown as received. De Lijn and NMBS/SNCB do not, so their vehicles are computed from the timetable and corrected with the delays they do publish (GTFS-RT). Each marker is tagged live, computed with delay, or computed, and the computed ones are drawn dimmer.

All data is open data. The four operators publish through one federal portal (data.belgianmobility.io) under CC BY 4.0: GTFS for timetables and route geometry, GTFS-RT for delays, alerts and positions where available. NMBS ships no route geometry, so train paths are routed over Infrabel's open track network.

This is not specific to Belgium. Nearly every country publishes public-transport open data in the same formats, and I was able to locate feeds for most European countries. A map like this can be built for almost any of them!

Happy to answer questions on the data or the simulation :)

Comment by brokencipher 21 hours ago

Well done. Very useful. concerning trains,when you click on any train, it's labelled Town A-Town B, while in fact in travels town B -> town A

Comment by mci-1 19 hours ago

Thanks for the comment will check it asap!

Comment by mci-1 19 hours ago

[flagged]

Comment by digitalsurgeonz 1 day ago

[dead]

Comment by sixtyj 23 hours ago

Nice effort. Well done.

Those who don’t bookmark but write url by memory get extra points /s

Ptm.be is for rent btw (public transport map)