Live data from Hacker News

Berlin public transport in real time

fahrinfo.vbb.de

81–90 of 143 posts

Re: Berlin public transport in real time

#81

Helsinki has one for their trams, subway and ferries: http://live.mattersoft.fi/hsl/Default.aspx?lang=en I really wish there was this service for buses. Quite often the digital displays saying when the bus will arrive are inaccurate, as are the actual timetables printed on the bus stop (when there is traffic etc.)

And this one for the trains in Finland: http://188.117.35.14/vrviewer/VrViewer.html?locale=fi_FI

Click 'x' on the popup and zoom in to Helsinki to see the city trains. The site says the data is GPS location data.

Re: Berlin public transport in real time

#82
Real time London Transport Visualization. Available on GitHub too.

vizicities.com

ViziCities is the first project to visualise the entire London Underground network in 3D using accurate station depths. Not only that, we also visualise real, live trains moving along the 3D network.

Re: Berlin public transport in real time

#84

This appears to use the theoretical schedule, rather than real-time information. I live next to a busy tram line, and what I see through the window does not match what the site shows.

Totally, buses never seem to stop at traffic lights.

Well, they don't actually follow streets. Looks like it's just the shortest distance between two stops, even if that goes right through a building or over water.

Works surprisingly well though, I only realized after a while.

Re: Berlin public transport in real time

#87
post #73

Real time public transport in Vilnius: http://stops.lt/vilnius/#vilnius/map/en Select this icon: http://stops.lt/vilnius/_images/vehicles.gif , on the right, to show vehicles as bubbles. It is real time from GPS transmitters inside the vehicles.

Kaunas has this too: http://googlemap.kvt.lt/google_map/

Re: Berlin public transport in real time

#88
I wrote a client-side library for this: http://onloop.net/transit http://onloop.net/chennairailmap

All the transport maps at that time I knew about, like Swisstrains (http://maps.vasile.ch/transit-sbb/), worked off webservers, so that was the motivation behind writing a purely client-side app.

Re: Berlin public transport in real time

#89
post #66

Earlier quoted context omitted.

In my city, Eindhoven in the Netherlands, traffic lights are often calibrated to make sure that buses don't have to stop at a red light.

It goes beyond that in the Netherlands. A lot of bus lanes have their own traffic light system -- they have very small lights to show when they can go or stop. :)

This also exists in Germany

https://de.wikipedia.org/wiki/%C3%96PNV-Bevorrechtigung

(Sorry, no english version available)

Re: Berlin public transport in real time

#90
post #70

Earlier quoted context omitted.

Well, what else would you return? A `400 Bad Request` error might be more appropriate, but a `500 Internal Server Error` is "A generic error message, given when an unexpected condition was encountered and no more specific message is suitable." - you don't want to leak internal state, obviously, so just log the problem and respond with a 500. TL;DR: Might be a segfault, but it's 2015 - it probably isn't.

5xx to me suggests that retrying is worthwhile. Any "deterministic" error (as a function of the parameters I submitted) should be a 4xx.

Definitely.
Post reply on HN