top | item 4635457

Indian Railways, live on Google Maps

197 points| beingpractical | 13 years ago |railradar.trainenquiry.com

44 comments

order
[+] rashkov|13 years ago|reply
"An illiterate child from a small town in India falls asleep on a train and ends up lost in Calcutta, unable to find his way back home. Twenty-five years later, while living with his adoptive family in Australia, he locates his lost hometown using memories and Google Earth. (David Kushner, Vanity Fair)" http://www.vanityfair.com/culture/2012/11/india-orphan-googl...
[+] rburhum|13 years ago|reply
That was a great read. Thank you!
[+] fredley|13 years ago|reply
At time of writing, 59% of trains are delayed. I have very fond memories of train travel in India. I learned a lot about relaxing, and going with the flow.
[+] maddalab|13 years ago|reply
59% of trains delayed is not an accurate representation. IR has what is known as an operating schedule provided for intermediate stations which differs from the published schedule. The intermediate and published schedules are synchronized at major junctions along the way. The operating schedule has slack built in. A train running late by upto an hour usually arrives on or before time at major and terminating stations. A case in point right at this instance 65% of the trains are on schedule, checking during the morning hours in India will show a higher on time percentage on time as trains approach terminating stops.
[+] shriphani|13 years ago|reply
The delays made the trip awesome. I haven't gotten onto a train in a decade but tier-2 AC is the greatest travel experience in the world.
[+] dschiptsov|13 years ago|reply
yeah, I also do miss them so much..

a 36 hour journey from Chennay to NJP in a Sleeper.. This is India.)

[+] wreckimnaked|13 years ago|reply
At least the food on the Indian AC trains is not that awful.
[+] fakeer|13 years ago|reply
I am sure "being delayed" had a lot to do with the fond memories :-)

When I was a kid and used to go on vacation with family, the late train was so good for me. It meant few extra vacation hours before schools and homework would start. I hope it would become the same again. BTW, only my lifestyle has changed. Train timings are still there where they were 15 yrs ago or maybe have become "more relaxing" :-)

[+] yogrish|13 years ago|reply
Very nice app esp. in context of India where train timings are highly unpredictable.How are they getting real time data - GPS fitted or Indian rail opened APIs?

Good that they mentioned why it is not exact real time ..."For security and regulatory reasons, the information published on RailRadar is delayed for 5 or more minutes."

edit: Rephrased.

[+] jagira|13 years ago|reply
Indian Railways has numerous monitoring stations. (mainly at railway stations) These monitoring stations update train's location when trains pass 'em.

In between such points, IR may know train's realtime location, but it is not made public.

Update

It is mentioned on the site that there are 6000 monitoring stations. Which means that, on average, there is a monitoring station every 11 kms (66k Km/ 6000). Considering an average speed of 80kmph, the location shown on the app can at max be 8.25 minutes old.

[+] Derbasti|13 years ago|reply
Usually, all railway lines must know the position of every train at any time. This is simply a requirement for avoiding crashes. As far as I know, there are usually pressure/induction sensors at regular intervals that detect train positions. Maybe that is what they are using?

Electric railways usually only supply actually used sections of the railway with power, so they have to know train positions, too.

[+] kingsley_20|13 years ago|reply
Indian railways employs a number of methods. The most primitive fallback is the one where the station master updates the system whenever a train passes the station, whether or not it stops there.
[+] vigneshv_psg|13 years ago|reply
trainenquiry.com is operated by CRIS (which falls under the railways ministry). So they have access to all of IR data.
[+] dbloom|13 years ago|reply
The same thing can be done with SF MUNI. http://www.nextmuni.com/googleMap/?a=sf-muni&r=KT&r=...

I check this before I leave every morning. I live just north of the Muni Metro East yard, so I can tell when a nice empty train is about to go into service and run over to the station just in time to catch it.

(In theory you can enable every train and bus line at once, but after a certain point the page never loads)

[+] dan1234|13 years ago|reply
This is very nice, but does it breach Google's Ts&Cs with regard to business asset tracking? I only ask because I wanted to make something similar (though not India or trains)

https://developers.google.com/maps/terms section 10.2b(iii)

[+] asmithmd1|13 years ago|reply
10.2c(iii) is pretty clear that this use is explicitly allowed:

"you may use the Google Maps API(s) to track assets such as cars, buses or other vehicles, as long as your tracking application is made available to the public without charge. For example, you may offer a free, public Maps API Implementation that displays real-time public transit or other transportation status information.)"

[+] guard-of-terra|13 years ago|reply
"please contact the Google Maps API for Business sales team" I'm pretty sure they did exactly that and got a green light.
[+] s_v|13 years ago|reply
Use Leaflet or Modest Maps!
[+] calebjohnclark|13 years ago|reply
By "mapped live" I was hoping to see the trains move on the map. Even if it wasn't 100% accurate, it would dramatically boost the cool factor to see the trains animated along the tracks. Just an idea. I love what you've already built.
[+] santhoshn|13 years ago|reply
I am not sure how this can be useful for some one. When I want to take a train journey, I would like to know my train's position a few hours before I leave or when I am already at that station. I would not be sitting in front of this website and locating my train. A simple service of informing me about the delay by SMS would just be good enough. Also, the webpage loads a bit slowly on my laptop. On my smartphone with a 3G connection, it does not work at all.
[+] jezclaremurugan|13 years ago|reply
Nice to see this. Hope the praise this gets inspires the Indian Railway to do something about irctc.co.in, which is far more important.
[+] sremani|13 years ago|reply
Nicely done, I think the next step is to add granularity so that the user can focus on one particular region and get more detail.
[+] Jarihd|13 years ago|reply
Nice app. btw, How are you tracking trains? Is there an API for Indian railways or are you scraping data from their websites ???
[+] ajhai|13 years ago|reply
AFAIK, this is done by railyatri.in for Indian Railways
[+] pkapur86|13 years ago|reply
Love the idea! Thanks for sharing.
[+] treskot|13 years ago|reply
Can come handy while travelling in India. Especially the little known cities.
[+] samikc|13 years ago|reply
Excellent map and railway timing integration. very nice
[+] hna0002|13 years ago|reply
If only the view was not blocked by a zillion ads!
[+] garry89|13 years ago|reply
Really greate work!!!!!