Through their mobile apps, web interface, and public API, eRail.in offers gateways for accessing real time train information on the Indian Railway database. Calls to the eRail.in API can be made to return a list of stations with associated geolocation data. The API can also return unique train ID given two locations, return the route of a given a train number, calculate the fare between destinations, check Passenger Number Statuses, return the live status of any given train, infer seat availability and booking logistics, track train timing, and more. Usage limitations require calls to be made from a single IP server, requests are per IP address, and no more than 5 calls a second may be made. All HTTP requests to the API return JSON-formatted responses, and an API key is required for usage.
The following is a list of sample source code snippets that matched your search term. Source code snippets are chunks of source code that were found out on the Web that you can cut and paste into your own source code. Whereas most of the sample source code we've curated for our directory is for consuming APIs, we occasionally find something interesting on the API provider side of things. If you know of some sample source code that would be of interest to the ProgrammableWeb community, we'd like to know about it. Be sure to check our guidelines for making contributions to ProgrammableWeb.