Skip to content
psaravanan edited this page Dec 30, 2014 · 2 revisions

Welcome to the rails-rail-in wiki!

rail_in =   RailIn.new(eRailKey)

Get trains between two given stations.

rail_in.trains(station_from, station_to)

Get route(s) of given train number. List of all available routes will be returned.

rail_in.route(train_no)

Get full route of given train number. List of stations in route of train will be displayed, showing all passing stations also.

rail_in.full_route(train_no)

Get fare for the journey from source station to destination station.

rail_in.fare(train_no, station_from, station_to, age, quota, date)

Get details of given PNR number.

rail_in.pnr_status(pnr_no)

Get live running status of the given train.

rail_in.live_status(train_no, station_from, date)

Get seats availability in given train between given pair of stations in given quota, class and date.

rail_in.seat_availability(train_no, station_from, station_to, quota, class, date)

Get list of trains at given station withing in given hours.

rail_in.train_at_station(station_from, station_to, hour)