Checkout a new application to plan your train journey's using
Plan Your Journeys
Developed using : Angular JS, Groovy & Grails, JQuery UI, JavaScript, Responsive Layout.
Trains Between Stations and Seat Availability
Source code location :
Source Code
Services Used From : railpnrapi.com
End Points:
Trains Between Stations
Sample Response:
{
"from_station": {
"name": "Kakinada Town",
"code": "CCT"
},
"to_station": {
"name": "Secunderabad Junction",
"code": "SC"
},
"trains": [{
"number": "17206",
"name": "Cct Snsi Express",
"src_arrival_time": "Start",
"src_departure_time": "06:15",
"dest_arrival_time": "16:25",
"dest_departure_time": "16:40",
"days": [{
"day-code": "SUN",
"runs": "N"
}, {
"day-code": "MON",
"runs": "Y"
}, {
"day-code": "TUE",
"runs": "N"
}, {
"day-code": "WED",
"runs": "Y"
}, {
"day-code": "THU",
"runs": "N"
}, {
"day-code": "FRI",
"runs": "N"
}, {
"day-code": "SAT",
"runs": "Y"
}],
"classes": [{
"class-code": "1A",
"available": "N"
}, {
"class-code": "2A",
"available": "Y"
}, {
"class-code": "FC",
"available": "N"
}, {
"class-code": "3A",
"available": "Y"
}, {
"class-code": "CC",
"available": "N"
}, {
"class-code": "SL",
"available": "Y"
}, {
"class-code": "2S",
"available": "N"
}, {
"class-code": "3E",
"available": "N"
}]
}, {
"number": "17221",
"name": "Coa Ltt Express",
"src_arrival_time": "08:53",
"src_departure_time": "08:55",
"dest_arrival_time": "20:20",
"dest_departure_time": "20:25",
"days": [{
"day-code": "SUN",
"runs": "N"
}, {
"day-code": "MON",
"runs": "N"
}, {
"day-code": "TUE",
"runs": "N"
}, {
"day-code": "WED",
"runs": "Y"
}, {
"day-code": "THU",
"runs": "N"
}, {
"day-code": "FRI",
"runs": "N"
}, {
"day-code": "SAT",
"runs": "Y"
}],
"classes": [{
"class-code": "1A",
"available": "N"
}, {
"class-code": "2A",
"available": "Y"
}, {
"class-code": "FC",
"available": "N"
}, {
"class-code": "3A",
"available": "Y"
}, {
"class-code": "CC",
"available": "N"
}, {
"class-code": "SL",
"available": "Y"
}, {
"class-code": "2S",
"available": "N"
}, {
"class-code": "3E",
"available": "N"
}]
}, {
"number": "12737",
"name": "Goutami Express",
"src_arrival_time": "20:28",
"src_departure_time": "20:33",
"dest_arrival_time": "06:35",
"dest_departure_time": "Ends",
"days": [{
"day-code": "SUN",
"runs": "Y"
}, {
"day-code": "MON",
"runs": "Y"
}, {
"day-code": "TUE",
"runs": "Y"
}, {
"day-code": "WED",
"runs": "Y"
}, {
"day-code": "THU",
"runs": "Y"
}, {
"day-code": "FRI",
"runs": "Y"
}, {
"day-code": "SAT",
"runs": "Y"
}],
"classes": [{
"class-code": "1A",
"available": "Y"
}, {
"class-code": "2A",
"available": "Y"
}, {
"class-code": "FC",
"available": "N"
}, {
"class-code": "3A",
"available": "Y"
}, {
"class-code": "CC",
"available": "N"
}, {
"class-code": "SL",
"available": "Y"
}, {
"class-code": "2S",
"available": "N"
}, {
"class-code": "3E",
"available": "N"
}]
}],
"error": null
}
Seat Availability
Sample Response:
{
"response_code": 200,
"availability": {
"train_number": "12738",
"train_name": "GOUTAMI EXP ",
"date_of_journey": "21-02-2015",
"from": {
"name": "SECUNDERABAD JN",
"code": "sc",
"location": null
},
"to": {
"name": "KAKINADA TOWN ",
"code": "cct",
"location": null
},
"class": {
"class_code": "SL",
"class_name": "SLEEPER CLASS"
},
"quota": {
"quota_code": "CK",
"quota_name": "TATKAL"
},
"availability_status": [{
"date": "21-02-2015",
"status": "AVAILABLE 151"
}, {
"date": "22-02-2015",
"status": "AVAILABLE 151"
}, {
"date": "23-02-2015",
"status": "AVAILABLE 151"
}, {
"date": "24-02-2015",
"status": "AVAILABLE 151"
}, {
"date": "25-02-2015",
"status": "AVAILABLE 151"
}, {
"date": "26-02-2015",
"status": "AVAILABLE 151"
}]
}
}
PNR STATUS
EndPoint:
PNR STATUS
Sample Response:
{
"response_code": 200,
"pnr": "4824325952",
"train_num": "12738",
"train_name": "GOUTAMI EXP ",
"doj": "2015-03-06",
"from_station": {
"code": "SC ",
"name": "Secunderabad Junction"
},
"to_station": {
"code": "CCT ",
"name": "Kakinada Town"
},
"reservation_upto": {
"code": "CCT ",
"name": "Kakinada Town"
},
"boarding_point": {
"code": "SC ",
"name": "Secunderabad Junction"
},
"class": " SL",
"no_of_passengers": 6,
"chart_prepared": "N",
"passengers": [{
"sr": "1",
"booking_status": "S8,35,GN",
"current_status": "CNF"
}, {
"sr": "2",
"booking_status": "S8,34,GN",
"current_status": "CNF"
}, {
"sr": "3",
"booking_status": "S8,40,GN",
"current_status": "CNF"
}, {
"sr": "4",
"booking_status": "S8,38,GN",
"current_status": "CNF"
}, {
"sr": "5",
"booking_status": "S8,37,GN",
"current_status": "CNF"
}, {
"sr": "6",
"booking_status": "S8,24,GN",
"current_status": "CNF"
}],
"error": null
}