Need Project Intern to create better One-Click train searching algorithm

8 views
Skip to first unread message

Narendra Sisodiya

unread,
May 21, 2011, 7:22:05 AM5/21/11
to osco...@googlegroups.com, IITDLUG
Suppose you want to find Train availability of train JAT BDTS SPL (09022) on 25-05-2011 From DELHI SAFDARJNG To BANDRA TERMINUS for GENERAL category

then you need to give this format to URL.


http://indiatrain.in/Rail/getAvailabilityMMT2.aspx?Train_No=09022&Station_From=DSJ&Station_To=BDTS&mDay=25&mMonth=5&mYear=2011&mClass=SL&mQuota=GN&temp=1305975273236

This GET command will return availability , You can perform same Operation to different trains for same day..

Different trains can be found via this command

http://erail.in/rail/getTrains.aspx?Station_From=NDLS&Station_To=BCT&DataSource=0

you can apply following javascript function to parse this response body (check out the source code of erail.in)

Now, When user try to search train availability from Station A to Station B then , our script can load availability of all possible trains in the same route and only display trains which has available seats..

Please contact info@elpacorp to get start this project..
Or join http://groups.google.com/group/oscontrib and discuss there..
Thanks


--
┌─────────────────────────┐
│    Narendra Sisodiya
│    http://narendrasisodiya.com
└─────────────────────────┘

Narendra Sisodiya

unread,
May 21, 2011, 8:52:29 AM5/21/11
to iit...@googlegroups.com, oscontrib
On Sat, May 21, 2011 at 5:25 PM, Gaurish Sharma <gary...@gmail.com> wrote:
Hi,
existing website can provide this info in more user friendly manner
than you plan to[1], why duplicate something that already been
implemented?
 Regards,
Gaurish

[1] http://www.cleartrip.com/trains/calendar



Thanks Gaurish,
      I always use erail.in for searching train. I always wish some website. I was not knowing about http://www.cleartrip.com/trains/calendar  this website solve the purpose ...

Reply all
Reply to author
Forward
0 new messages