News for hackers. Stuff that matters.
Re:Indian Railways, live on Google Maps by rashkov on Wednesday October 10, 2012 @11:15AM (#4636671)
"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...
Re:Indian Railways, live on Google Maps by rburhum on Wednesday October 10, 2012 @04:53PM (#4638135)
That was a great read. Thank you!
Re:Indian Railways, live on Google Maps by rashkov on Wednesday October 10, 2012 @11:55PM (#4639295)
Glad you enjoyed it! Full credit goes to longreads.com
Re:Indian Railways, live on Google Maps by fredley on Wednesday October 10, 2012 @05:28AM (#4635648)
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.
Re:Indian Railways, live on Google Maps by maddalab on Wednesday October 10, 2012 @07:36AM (#4635875)
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.
Re:Indian Railways, live on Google Maps by bbgm on Wednesday October 10, 2012 @04:28PM (#4638030)
Correct. I don't know if this is still true, but there used to be an effort to keep a greater percentage of trains on time by delaying already late trains further (by prioritizing on time trains over them).

As a railway brat, I miss long distance train travel like crazy.

Re:Indian Railways, live on Google Maps by hm8 on Thursday October 11, 2012 @02:22AM (#4639699)
It's still true. Though IR is doing a good job of reducing delays.
Re:Indian Railways, live on Google Maps by fakeer on Wednesday October 10, 2012 @08:31AM (#4636006)
This is true mostly for the (very) long distance trains. For local (not Mumbai local or elk) or maybe between two cities or so, the trains are quite late. Especially in North India, the part of the country I hail from.

It also has to do with punctuating the journey with many small stations and always being added halts.

Re:Indian Railways, live on Google Maps by shriphani on Wednesday October 10, 2012 @01:10PM (#4637233)
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.
Re:Indian Railways, live on Google Maps by dschiptsov on Wednesday October 10, 2012 @06:49AM (#4635781)
yeah, I also do miss them so much..

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

Re:Indian Railways, live on Google Maps by wreckimnaked on Wednesday October 10, 2012 @06:06PM (#4638444)
At least the food on the Indian AC trains is not that awful.
Re:Indian Railways, live on Google Maps by fakeer on Wednesday October 10, 2012 @08:15AM (#4635960)
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" :-)

Re:Indian Railways, live on Google Maps by yogrish on Wednesday October 10, 2012 @05:39AM (#4635665)
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.

Re:Indian Railways, live on Google Maps by jagira on Wednesday October 10, 2012 @10:44AM (#4636508)
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.

Re:Indian Railways, live on Google Maps by Derbasti on Wednesday October 10, 2012 @06:31AM (#4635753)
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.

Re:Indian Railways, live on Google Maps by kingsley_20 on Wednesday October 10, 2012 @08:12AM (#4635949)
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.
Re:Indian Railways, live on Google Maps by boglin on Wednesday October 10, 2012 @09:34AM (#4636215)
http://trainenquiry.com/ already has same information in text/html format. This is just mapped to gui. Personally I prefer html format.
Re:Indian Railways, live on Google Maps by vigneshv_psg on Wednesday October 10, 2012 @06:46PM (#4638563)
trainenquiry.com is operated by CRIS (which falls under the railways ministry). So they have access to all of IR data.
Re:Indian Railways, live on Google Maps by dbloom on Wednesday October 10, 2012 @11:34AM (#4636773)
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)

Re:Indian Railways, live on Google Maps by dan1234 on Wednesday October 10, 2012 @07:35AM (#4635874)
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)

Re:Indian Railways, live on Google Maps by asmithmd1 on Wednesday October 10, 2012 @07:39AM (#4635886)
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.)"

Re:Indian Railways, live on Google Maps by guard-of-terra on Wednesday October 10, 2012 @07:39AM (#4635887)
"please contact the Google Maps API for Business sales team" I'm pretty sure they did exactly that and got a green light.
Re:Indian Railways, live on Google Maps by s_v on Wednesday October 10, 2012 @04:10PM (#4637941)
Use Leaflet or Modest Maps!
Re:Indian Railways, live on Google Maps by vilqqu on Wednesday October 10, 2012 @05:18AM (#4635629)
Previous discussion on mapping trains: http://news.ycombinator.com/item?id=4595208
Re:Indian Railways, live on Google Maps by guard-of-terra on Wednesday October 10, 2012 @06:45AM (#4635776)
There were quite a few posts like this for different countries, so: http://rasp.yandex.ru/map/trains/#center=47.140977%2C54.4277...

Trains visualized (mostly Russian) This uses their schedules not actual tracking, but trains tend to run on time now.

Re:Indian Railways, live on Google Maps by calebjohnclark on Wednesday October 10, 2012 @09:37AM (#4636228)
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.
Re:Indian Railways, live on Google Maps by santhoshn on Wednesday October 10, 2012 @11:43PM (#4639264)
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.
Re:Indian Railways, live on Google Maps by napster265 on Wednesday October 10, 2012 @05:37AM (#4635661)
Good to see the world's largest public sector employer edging towards the technology !
Re:Indian Railways, live on Google Maps by arethuza on Wednesday October 10, 2012 @05:50AM (#4635683)
"world's largest public sector employer"

That dubious honour appears to belong to the US Dept. of Defense:

http://en.wikipedia.org/wiki/List_of_largest_employers

Re:Indian Railways, live on Google Maps by z3phyr on Wednesday October 10, 2012 @08:11AM (#4635945)
Indian railways : more than 5 million employees, I wonder why wikipedia dosen't list it?
Re:Indian Railways, live on Google Maps by winkerVSbecks on Wednesday October 10, 2012 @09:58AM (#4636318)
Actually BBC did an article about this recently because there are a few misconceptions regarding this title and how many employees do these companies actually have:

www.bbc.co.uk/news/magazine-17429786

Re:Indian Railways, live on Google Maps by vilgax on Wednesday October 10, 2012 @10:26AM (#4636429)
Please include 'http' in your links to make it click-able.
Re:Indian Railways, live on Google Maps by winkerVSbecks on Wednesday October 10, 2012 @03:55PM (#4637876)
didn't notice it was missing the http

http://www.bbc.co.uk/news/magazine-17429786

Re:Indian Railways, live on Google Maps by taejo on Wednesday October 10, 2012 @10:51AM (#4636537)
It's there, but has only 1.4 million employees.
Re:Indian Railways, live on Google Maps by liquidwax on Friday October 12, 2012 @01:18PM (#4645959)
Indian Railways above Indian Armed forces. #peace
Re:Indian Railways, live on Google Maps by jezclaremurugan on Wednesday October 10, 2012 @07:09AM (#4635820)
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.
Re:Indian Railways, live on Google Maps by sremani on Wednesday October 10, 2012 @10:29AM (#4636440)
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.
Re:Indian Railways, live on Google Maps by Jarihd on Wednesday October 10, 2012 @06:40AM (#4635767)
Nice app. btw, How are you tracking trains? Is there an API for Indian railways or are you scraping data from their websites ???
Re:Indian Railways, live on Google Maps by ajhai on Wednesday October 10, 2012 @06:49AM (#4635782)
AFAIK, this is done by railyatri.in for Indian Railways
Re:Indian Railways, live on Google Maps by pkapur86 on Wednesday October 10, 2012 @09:54AM (#4636297)
Love the idea! Thanks for sharing.
Re:Indian Railways, live on Google Maps by treskot on Wednesday October 10, 2012 @04:03AM (#4635498)
Can come handy while travelling in India. Especially the little known cities.
Re:Indian Railways, live on Google Maps by samikc on Wednesday October 10, 2012 @07:17AM (#4635838)
Excellent map and railway timing integration. very nice
Re:Indian Railways, live on Google Maps by hna0002 on Wednesday October 10, 2012 @01:45PM (#4637399)
If only the view was not blocked by a zillion ads!
Re:Indian Railways, live on Google Maps by garry89 on Wednesday October 10, 2012 @07:53AM (#4635907)
Really greate work!!!!!