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.ScheduledJourneysApi Class Reference

Contains the logic to call upon the Scheduled Journeys API. More...

Static Package Functions

static async Task< Journey[]> GetTimeTable (BusService service, DateTime date, BusStop location)
 Gets the time table of a service or a location as one array of 'BusTimeTable' objects. More...
 

Detailed Description

Contains the logic to call upon the Scheduled Journeys API.

Member Function Documentation

◆ 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
serviceThe bus services you wish to view.
dateThe date of the time table.
locationThe location to get timetable data from.
Returns
An array of time table records for the service or location or both
Exceptions
ReadingBusesApiExceptionMalformedQueryIf you have not provided any date, and/or you have not provided at least either the service or location.
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: