Contains the logic to call upon the Tracking History API.
More...
Contains the logic to call upon the Tracking History API.
◆ 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
-
service | The bus services you wish to view. |
date | The date of the time table. |
location | The location to get timetable data from. |
vehicle | A bus/Vehicle ID number. |
- Returns
- An array of time table records for the service or location or both
- Exceptions
-
ReadingBusesApiExceptionMalformedQuery | If 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. |
ReadingBusesApiExceptionBadQuery | Thrown if the API responds with an error message. |
ReadingBusesApiExceptionCritical | Thrown if the API fails, but provides no reason. |
The documentation for this class was generated from the following file: