http://indianrailapi.com/api/v2/CoachLayout/apikey/<apikey>/TrainNumber/<TrainNumber>
Parameter :
- apikey : Your API key.
- TrainNumber : Train Number.
Output :
{"ResponseCode":"200","TrainNumber":"12565","Coaches":[{"SerialNo":"1","Code":"ENG","Name":"Engine","Number":"ENG"},{"SerialNo":"2","Code":"GRD","Name":"General + Disabled + Luggage + Brake","Number":"GRD"},{"SerialNo":"3","Code":"GEN","Name":"General","Number":"GN"},{"SerialNo":"4","Code":"GEN","Name":"General","Number":"GN"},{"SerialNo":"5","Code":"SL","Name":"Sleeper","Number":"S1"},{"SerialNo":"6","Code":"SL","Name":"Sleeper","Number":"S2"},{"SerialNo":"7","Code":"SL","Name":"Sleeper","Number":"S3"},{"SerialNo":"8","Code":"SL","Name":"Sleeper","Number":"S4"},{"SerialNo":"9","Code":"SL","Name":"Sleeper","Number":"S5"},{"SerialNo":"10","Code":"SL","Name":"Sleeper","Number":"S6"},{"SerialNo":"11","Code":"SL","Name":"Sleeper","Number":"S7"},{"SerialNo":"12","Code":"SL","Name":"Sleeper","Number":"S8"},{"SerialNo":"13","Code":"SL","Name":"Sleeper","Number":"S9"},{"SerialNo":"14","Code":"SL","Name":"Sleeper","Number":"S10"},{"SerialNo":"15","Code":"SL","Name":"Sleeper","Number":"S11"},{"SerialNo":"16","Code":"SL","Name":"Sleeper","Number":"S12"},{"SerialNo":"17","Code":"SL","Name":"Sleeper","Number":"S13"},{"SerialNo":"18","Code":"PC","Name":"Pantry","Number":"PC"},{"SerialNo":"19","Code":"AC","Name":"AC 3 Tier (64 Seats)","Number":"B1"},{"SerialNo":"20","Code":"AC","Name":"AC 2 Tier (46 Seats)","Number":"A1"},{"SerialNo":"21","Code":"AC","Name":"AC First + AC 2 Tier","Number":"HA1"},{"SerialNo":"22","Code":"AC","Name":"AC First + AC 2 Tier","Number":"HA2"},{"SerialNo":"23","Code":"GEN","Name":"General","Number":"GN"},{"SerialNo":"24","Code":"GEN","Name":"General","Number":"GN"},{"SerialNo":"25","Code":"GRD","Name":"General + Disabled + Luggage + Brake","Number":"GRD"}],"Status":"SUCCESS","LastUpdate":"2018-09-19 01:53:37 AM"}