Hacker News new | past | comments | ask | show | jobs | submit login
Real time map of trains in Japan (demap.info)
146 points by moubarak on Oct 1, 2012 | hide | past | favorite | 61 comments



It's real-time in the sense that it's based on the published schedules of the train lines, but it's not "real" real-time because it is not based on the actual locations of the trains.

It's not useful at all, but it's a cute visualization and because trains in Japan run very nearly on schedule during normal operating hours, it will be mostly accurate the vast majority of the time.

edit : In the "About this site" link on the upper right, it explains that :

① The site uses the scheduled operating information and displays the location the trains are running on the map at the current time.

② The contents, URL, etc., can change at any time or can be made no longer publicly available.

③ & ④ The site adminstrator takes no responsibility, etc. You are responsible for your own actions.

In the other information section, the author specifies that it's for Japan only and that the icons used are representative for those lines.


>but it's not "real" real-time because it is not based on the actual locations of the trains.

It's "real-time" enough in Japan because trains in Japan are almost always on time.


Baaahahahahahahahahhahahahaaaaaa

Train was 8 minutes late this morning and 3 lines were stopped. Probably due to the Typhoon yesterday causing scheduling problems but even on normal days Japanese trains are not the paragons of time-keeping the west seem to make them out to be

(Although they ARE miles better than anything I have seen in the UK for instance.)

[EDIT] Note: Previous poster downgraded the conviction of his statement after this comment was posted.


Nothing is perfect, not even Japanese trains, but in my experience, the grandparent poster is closer to the truth than you are: Japanese trains are paragons of time-keeping ("paragon: a model or pattern of excellence or of a particular excellence").

Obviously right after a typhoon is a bad time to measure anything, but in normal operation, Japanese trains are extremely punctual, to a degree that's downright astonishing to anyone used to trains in most other countries. Arriving more than a minute late is unusual (less than that is hard to judge because the timetables don't include seconds).

The only real exceptions are situations where it's almost impossible to do better—cleaning up after a suicide (and here they're still many times faster than in the U.S., for instance), or operating in inclement weather so severe that attempting normal operation would be dangerous.

These exceptions do happen often enough that anybody who lives in Japan will be inconvenienced occasionally (with suicides being the main offender), but 99% of the time, you can set your watch by train arrivals.

More to the point, there seems little they could do to make punctuality much better, unless they can figure out how to cheer up the population to the point of discouraging suicides (and of course they are actually working on this issue by moving to platform doors on some lines, not to mention more wacky methods like the blue lights underneath the ends of platforms).

If something is so good that there's little practical room for any improvement, doesn't that make it a pretty good candidate for being called "a paragon"?


Slightly off topic, but when my brother was young he became obsessed with preventing train suicides and we actually came to the conclusion that placing an airbag on the front of the train would most likely (help to) resolve this issue.

Based on our calculations it should be feasible to prevent death in at least a few percent of cases.

Given that the biggest draw for train suicides is its near 100% success rate that would probably quickly reduce train suicides by a very significant factor.


I also thought this is an almost impossible problem to solve, until a friend pointed out that on the Jubilee line extension (London Underground), it is solved.

The edge of the platform at the newer stations is walled off from the track by glass. The platform doors line up with the train's, and open/close at the same time. So there's no access to the track at any point, hence no opportunity for "person under train".


They have those doors in many places in Asia also, but most of the trains people are jumping in front of in Japan are above ground and the stations are literally just platforms with a roof.


Platform doors are certainly possible above ground too.

Usually in Tokyo, they use chest-height barriers/doors for above-ground lines, e.g. currently the Meguro-line has these, and in the future, the Yamanote-line will. This doesn't make suicides impossible, but makes them more difficult to a degree which will certainly discourage many people (you can't just fling yourself off the platform at the last moment). [Some subways, e.g. the Fukutoshin-line, use these as well.]

A more problematic issue is stations which handle many disparate types of trains on the same platforms, which makes it much more difficult to achieve the consistent door positioning you need for platform doors.


As a guy sitting in a soba joint in Tokyo right now...I cannot imagine how much it would cost to put those doors on all the JR and Metro stations. It's certainly in the realm of prohibitive.


They do end up saving some money too, though, not only by reducing suicides and accidents, but because platform doors seem to be considered a prerequisite for "one-man operation" (ワンマン運転) on most lines, and that can help reduce staffing costs.

Most Tokyo stations also have high enough ridership that such capital improvements are a lot easier to swallow than they would be for "concrete slab in the countryside" stations.

Luckily, it's the sort of thing they can do incrementally in the places where it makes the most sense; no need to do every line and every station immediately. I imagine they'll probably continue to do it slowly, just as they're slowly adding elevators and other accessibility improvements to even minor stations.


Some metro and train stations have those in Japan too, though they are still somewhat rare sight.


You might end up with idiots jumping in front of trains because 'it's safe now'.


True; we didn't think of that.

I still think it would be a good development on the whole though and hope somebody somewhere will build this...


What is considered late there? If a train arrives within 6 minutes of schedule and departs within 11 it's considered 'on time' in my part of Australia.


Sorry, previous commenter said something along the lines of "Trains always on time to the second" which prompted my response.

I don't know the exact numbers they use for their statistics (I think it used to be 1 minute).

If a train is delayed by 10 minutes you can ask for a ticket to take to work to show your boss that being late was not your fault.

Don't get me wrong, the punctuality is much better than most European countries I have lived in and quite a lot of the time the are perfectly on time, but the west has raised the Japanese public transport system to near mythical status.


In germany we're glad when the train arrives within the hour that it was scheduled for...


Not true. http://www.bahn.de/p/view/buchung/auskunft/puenktlichkeit_pe...

In August 2012, 99.1% of all stops happened within fifteen minutes of the scheduled time, 94.2% happened within five minutes. Looking only at long-distance trains, 75.8% of all stops where reached within five minutes of the scheduled time and 90.5% of all stops were reached within fifteen minutes of the scheduled time.


Not true. Today morning "We appologize bla bla", last Saturday evening "We appologize bla bla aprox. delay 60 min". In the end it was about 120 min. In Germany trains do have delays a way TOO OFTEN.


I don’t think you should respond to data with anecdotes. That’s not very useful.

You might be using a train connection that – for whatever reason (construction work, etc.) – is consistently late. Sucks for you, doesn’t mean train in Germany are in general late. Most are on time.


If you click on "Fernverkehr" you'll notice that actually only 90% of intercity-trains have been within the 15min window.

Every 10th train was late for more than >15min.

Yes, Regios may be better. That doesn't help when, for example, you need to catch a plane in a different city.


One in ten seems pretty good to me. Everything else are completely unrealistic expectations.


Depends on what type of train I guess. Probably no bullet train (shinkansen) has even been more than 59 seconds late (under normal circumstances that is). Naturally any type of bad weather like blizzards, typhoons or earthquakes will cause delays but most likely due to a complete cancellation of service.

Local trains are more prone to delays, for example the Yamanote line in Tokyo being the most notorious due to ahem, being the preferred line used by Tokyoites to say bye-bye to this world.

For local city train lines a delay of more than 5 minutes will result in the driver profusely apologizing on and on, and the line to start issuing "certificates" that people can get to show their employers blaming the lateness on the train line.


Sometimes they arrive 1 or 2 minutes late due to stuff like urgent track inspection/maintenance. This is generally not considered a big deal, although the conductor will still announce it and briefly apologize for it.

Leaving 6 minutes (let alone 11) later than the schedule is definitely considered late. If you're changing lines, which in practice most people have to do when commuting in Tokyo, a 5 minute delay can result in an even bigger total delay (e.g. if the next train you take is an express one, and it comes every 15min).

Delays longer than that are usually due to bodily accidents which is an euphemism for "someone just jumped in the tracks", and typhoons and other natural accidents. The former is more common.

What I found more amazing when I fist came is that buses also come on time! Although of course short delays are more common than with trains, they're pretty much on schedule. The flip side is that they run very slowly and stop every other block. When I used to commute by bike I often kept up with buses for long stretches.


For frequent trains like like loop lines and subways in major cities, you can generally expect them to arrive when scheduled. These arrive every few minutes, so anything longer than a minute is perceived as a delay. These will be reported and apologized for.

For trains like JR that run longer distances and less frequently, delays of 15-20 minutes due to accidents or weather can happen. This seems to happen once every few months or so.


When there isn't a typhoon on, they pretty much arrive on time to the second. Anything later than a few minutes results in the platform staff handing out notes to that effect so that employees can prove to their companies that the train was actually late.


In India, if a train arrives, it is considered 'on time'.


I take it that you've never been to India.


I agree they are definitely more on time than in other countries (in France the timings are a joke!) but they are still getting late quite often. Several times in a week at least.

It's not so much of a problem because there is a high frequency of trains anyway.


I though those timetables where more like guidelines !


This is a fun visualization, but as you mentioned it's inaccurate precisely when you need it most (when there's a delay). Actually, some JR stations in Osaka already have an indicator that shows when incoming trains are stopped at the previous station or whether they are in between stations.


Actual GPS data from trains in Finland: http://www.vr.fi/fi/index/aikataulut/junatkartalla.html (finnish only)

Close the dialog box that opens, it's a search for trains or stations on the map.


I did a somewhat similar mobile app for Maemo using the open data we have of Helsinki trams: http://bergie.iki.fi/blog/buscatcher-never_miss_another_tram...

Some relevant public transportation data sources for Helsinki: http://www.hri.fi/en/data/hsl-reittiopas-api/


Here's a web service for Helsinki tram GPS data: http://transport.wspgroup.fi/hklkartta/

For some reason it's ridiculously hard to find as it's not linked to from the pages you usually use to find transportation.


And the estimated locations of dutch trains: http://kubus.mailspool.nl/spoorkaart/


Real real time map of trains in Hungary (based on GPS data) http://vonatinfo.mav-start.hu/


I like this one of the trains in Switzerland. http://simcity.vasile.ch/sbb/


This is really cool; a few years ago I wanted to do this for the published schedules of NYC's subway. At the time it involved scraping schedules from the MTA website's horrendous HTML, but now it looks like they've completely reversed direction and have it in an accessible format. Interestingly, they have real-time data for buses, but not for the subway.


On the subway, it's probably harder to get data to the TVS since it would be transmitting from underneath tons of concrete. They could tie it into the train control system, but they probably don't want to connect that to the Internet to prevent the case that someone could take it over and mess with the subway.


Related .. Something I've been working on to learn d3.js A table of "happenings" on the Tokyo metro line for the last 30 days scraped hourly from the Tokyo metro site. The animations are a bit pointless but you get the idea!

http://poyo.co/metro

Yesterday's typhoon really messed things up!


Very cool! Do you have any data on how long the "happening" lasted? Would be neat if you could somehow incorporate that into the size of the circle in the left graph, or instead of showing the number of happenings on the right graph, you could instead show the downtime.


Most end in the same way (平常どおり運転しています。 - returned to normal operation) so, it's possible, sure!


This is pretty neat (even if not realtime :))

I'd really love to know where the data is coming from.

I played[1] with a similar idea a few months ago creating a simple visualization just for fun that is more like a timelapse of the "veins of tokyo" and was curious about the distribution of trains during the day. In my case, I just scraped the tokyo metro site's timetables, but it's quite a bit of work to fit the data (identify the trains with rapid/semi-rapid trains that skip stations, etc) - it's still not easy to know when a train would be waiting at a station, the best I could have done is guess from the average time between stations, which also does vary throughout the day. Eventually only a few lines made it in.

[1] http://zaki.asia/metro


Here's one for Sweden (passenger-trains only): http://www.tagkartan.se - It's also based off on schedules but updates with delays as soon as they are announced.


This reminds me of University of Michigan's magic bus service: http://mbus.pts.umich.edu/

Magic bus is run off of actual real-time data, though, unlike this example.


Apparently in Japan the cell phone reception is great even on the trains. Why don't ppl download an app where it figures out your gps location, speed and based on that figures out what train you are on. Then it finds others in the area with similar info to verify your data and puts it on a map. That way you know where the train is if you have these groups of people moving very fast close to the gps location of the railway tracks.


Here is one of The Netherlands: http://kubus.mailspool.nl/spoorkaart/


I always wondered if this one is based on real-time information or based on the scheduled times as well.


It's somewhat similar to http://whereisbart.com/


This is a live map of the trains in and around the area of Copenhagen, Denmark:

http://byenspuls.dsb.dk/byens_puls/ByensPuls.html

The colour of the marker reflect its punctuality, thus yellow means 5-10 minutes late etc.


Real time map of buses in Vilnius, Lithuania: http://stops.lt/vilnius/#bus/map It also shows the speed of bus if you click on a blue bubble.


Built this for the start up I work for. Fun challenge to predict the arrival times.

http://uvm.blirpit.com/ (No buses will be active for the next ~6 hours)


Protip: don't try this in chrome ... the endless auto-translation of the bubbles (which happens each time a train moves) kills it completely. Looks decent in Safari though. Pretty neat!


looks great on IE9 as well :)


Real time arrival times for Boston subway (where available).

http://wheresthembta.com

I've never found the maps data viz particularly helpful.


Except for our beloved Green Line. The oldest subway in the country doesn't even know where it is--so it can't tell us.


Anyone got it working on iPad? It seems like nothing is moving on the map. Maybe Japanase servers have a long Round-trip time, I don't know why.


Edit: needs zooming.


In my firefox 12.0, Linux OS

The train disappears after some time..



Where do you get the data for the location of the trains? Is there some kind of data feed?


Is it real time data ?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: