Reading Buses API V3.0.0
A C#, .net Standard Library for the Reading Buses Open Data API (https://reading-opendata.r2p.com/), available to use in your C# console, WPF, UWP or Win Form Applications.
|
A C#, .net Standard Library for the new Reading Buses API, available to use in your C# console, UWP, WPF or Win Form Applications.
This includes bus services operated by Reading Buses and subsidiaries such as, Thames Valley Buses and Newbury & District Buses.
The library supports the List of Bus Stops, Live Vehicle Positions, Live Journey Details, Stop Predictions, List of Lines, Line Patterns, Timetabled Journeys, Tracking History and the Vehicle Position History API..
Get your own API Keys from: https://reading-opendata.r2p.com/api-service
Examples code can be found on the Examples Repository here
The library source code can be found on GitHub here.
Get the package from the nuget store here
First you need to initialise the library by providing your API key:
Once Initialised all future reference can be got using:
To get a list of bus services operated by Reading Buses and the information about them you can do any of the following:
To get all Services:
To get all Services from a company:
To get specific Services based on their brand:
To get specific Service by Service Number and Company Operator:
Note that the API has data for Reading Buses, Thames Valley Buses and Newbury & District Buses, as such, service id might not be unique. For example, Reading Buses and Newbury & District both operate a service number "1", so operator is needed to specify which one.
To get a service's timetable
To get a service's historical journeys
To get a service's route
To get all locations
To get location based on Acto-Code (Bus Stop ID)
To get live stop departure information
To get Live GPS Data
To get Archived GPS Data
Once you have the bus service or location you want to inspect, they have various properties to let you get further data about them. Such as live bus stop data, GPS data, bus service routes. For more examples, please see the repository linked above.