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.
ReadingBusesAPI.TimeTable.TrackingHistoryApi Class Reference

Contains the logic to call upon the Tracking History API. More...

Static Package Functions

static async Task< HistoricJourney[]> GetTimeTable (BusService service, DateTime date, BusStop location, string vehicle)
 Gets the actual arrival and departure times of a bus, by service, date, location and/or vehicle ID. More...
 

Detailed Description

Contains the logic to call upon the Tracking History API.

Member Function Documentation

◆ GetTimeTable()

static async Task< HistoricJourney[]> ReadingBusesAPI.TimeTable.TrackingHistoryApi.GetTimeTable ( BusService  service,
DateTime  date,
BusStop  location,
string  vehicle 
)
staticpackage

Gets the actual arrival and departure times of a bus, by service, date, location and/or vehicle ID.

Parameters
serviceThe bus services you wish to view.
dateThe date of the time table.
locationThe location to get timetable data from.
vehicleA bus/Vehicle ID number.
Returns
An array of time table records for the service or location or both
Exceptions
ReadingBusesApiExceptionMalformedQueryIf you have tried to get data for a date in the future. Or if you have not provided any date, and/or you have not provided at least either the service or location or vehicle.
ReadingBusesApiExceptionBadQueryThrown if the API responds with an error message.
ReadingBusesApiExceptionCriticalThrown if the API fails, but provides no reason.

The documentation for this class was generated from the following file: