Contains the logic to call upon the Scheduled Journeys API.
More...
Contains the logic to call upon the Scheduled Journeys API.
◆ GetTimeTable()
static async Task< Journey[]> ReadingBusesAPI.TimeTable.ScheduledJourneysApi.GetTimeTable |
( |
BusService |
service, |
|
|
DateTime |
date, |
|
|
BusStop |
location |
|
) |
| |
|
staticpackage |
Gets the time table of a service or a location as one array of 'BusTimeTable' objects.
- Parameters
-
service | The bus services you wish to view. |
date | The date of the time table. |
location | The location to get timetable data from. |
- Returns
- An array of time table records for the service or location or both
- Exceptions
-
ReadingBusesApiExceptionMalformedQuery | If you have not provided any date, and/or you have not provided at least either the service or location. |
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: