railway
An API with various functionalities for indian railways
Installation
npm install railway
Usage
var railway =
- set API key (MANDATORY)
railway
You may register for a key at http://www.railwayapi.com/pricing/
- Check PNR status
Get PNR status using 10 digit PNR No.
railway
- Station name to Code
Get station details of given station and nearby stations using station name with automatic name completion.
railway
- Station Code to Name
Get passed railway station and nearby stations details using station code.
railway
- LIVE train status
Get live train status.
railway
- Train route information
Get train’s route information like the list of stoppages,their locations etc.
railway
- Trains between stations
Get all trains(numbers) running between a source station and destination.
railway
- Train name/number
Get train name using number and vice versa.
railway
- Seat Availability
Get Train Seat Availability.
railwayseatAvailability = '<trainNo>' '<source>' '<destination>' '<date>' '<class>' '<quota>' {}
class: valid class code can be fetched from http://www.indianrail.gov.in/class_Code.html
quota(optional: defaults to GN): valid quota code can be fetched from http://www.indianrail.gov.in/quota_Code.html