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.Common.UrlConstructor Class Reference

Returns back the URL needed to make a get command to the Reading Buses Open Data API. You can use this for testing purposes to check the API is returning what you were expecting. More...

Static Public Member Functions

static string ListOfBusStops ()
 Returns back the URL needed for a get request to the 'List of Bus Stops' API. More...
 
static string LiveVehiclePositions ()
 Returns back the URL needed for a get request to the 'Live Vehicle Positions' API. More...
 
static string LiveJourneyDetails (BusService service, string vehicle)
 Returns back the URL needed for a get request to the 'Live Journey Details' API. More...
 
static string StopPredictions (string actoCode)
 Returns back the URL needed for a get request to the 'Stop Predictions' API. More...
 
static string ListOfServices ()
 Returns back the URL needed for a get request to the 'List of Services' API. More...
 
static string LinePatterns (BusService service)
 Returns back the URL needed for a get request to the 'Line Patterns' API. More...
 
static string TimetabledJourneys (BusService service, BusStop location, DateTime date)
 Returns back the URL needed for a get request to the 'Time Tabled Journeys' API. More...
 
static string TrackingHistory (BusService service, BusStop location, DateTime date, string vehicle)
 Returns back the URL needed for a get request to the 'Tracking History' API. More...
 
static string VehiclePositionHistory (DateTime dateStartTime, TimeSpan? timeSpan, string vehicle)
 Returns back the URL needed for a get request to the 'Vehicle Position History' API. More...
 

Detailed Description

Returns back the URL needed to make a get command to the Reading Buses Open Data API. You can use this for testing purposes to check the API is returning what you were expecting.

Member Function Documentation

◆ LinePatterns()

static string ReadingBusesAPI.Common.UrlConstructor.LinePatterns ( BusService  service)
static

Returns back the URL needed for a get request to the 'Line Patterns' API.

Parameters
serviceThe bus service to query for.
Returns
Returns back the URL needed for a get request to the 'Line Patterns' API.

◆ ListOfBusStops()

static string ReadingBusesAPI.Common.UrlConstructor.ListOfBusStops ( )
static

Returns back the URL needed for a get request to the 'List of Bus Stops' API.

Returns
Returns back the URL needed for a get request to the 'List of Bus Stops' API.

◆ ListOfServices()

static string ReadingBusesAPI.Common.UrlConstructor.ListOfServices ( )
static

Returns back the URL needed for a get request to the 'List of Services' API.

Returns
Returns back the URL needed for a get request to the 'List of Services' API.

◆ LiveJourneyDetails()

static string ReadingBusesAPI.Common.UrlConstructor.LiveJourneyDetails ( BusService  service,
string  vehicle 
)
static

Returns back the URL needed for a get request to the 'Live Journey Details' API.

Parameters
serviceThe bus service
vehicleThe vehicle ID
Returns
Returns back the URL needed for a get request to the 'Live Journey Details' API.

◆ LiveVehiclePositions()

static string ReadingBusesAPI.Common.UrlConstructor.LiveVehiclePositions ( )
static

Returns back the URL needed for a get request to the 'Live Vehicle Positions' API.

Returns
Returns back the URL needed for a get request to the 'Live Vehicle Positions' API.

◆ StopPredictions()

static string ReadingBusesAPI.Common.UrlConstructor.StopPredictions ( string  actoCode)
static

Returns back the URL needed for a get request to the 'Stop Predictions' API.

Parameters
actoCodeThe bus stop ID code.
Returns
Returns back the URL needed for a get request to the 'Stop Predictions' API.

◆ TimetabledJourneys()

static string ReadingBusesAPI.Common.UrlConstructor.TimetabledJourneys ( BusService  service,
BusStop  location,
DateTime  date 
)
static

Returns back the URL needed for a get request to the 'Time Tabled Journeys' API.

Parameters
serviceThe bus service to query for.
locationThe bus stop to query for.
dateThe date you want to query at.
Returns
Returns back the URL needed for a get request to the 'Time Tabled Journeys' API.

◆ TrackingHistory()

static string ReadingBusesAPI.Common.UrlConstructor.TrackingHistory ( BusService  service,
BusStop  location,
DateTime  date,
string  vehicle 
)
static

Returns back the URL needed for a get request to the 'Tracking History' API.

Parameters
serviceThe bus service to query for.
locationThe bus stop to query for.
dateThe date you want to query at.
vehicleA vehicle ID to query for.
Returns
Returns back the URL needed for a get request to the 'Tracking History' API.

◆ VehiclePositionHistory()

static string ReadingBusesAPI.Common.UrlConstructor.VehiclePositionHistory ( DateTime  dateStartTime,
TimeSpan?  timeSpan,
string  vehicle 
)
static

Returns back the URL needed for a get request to the 'Vehicle Position History' API.

Parameters
dateStartTimeThe date and time you want to query for.
timeSpanThe length of the time period to query for.
vehicleA vehicle ID to query for.
Returns
Returns back the URL needed for a get request to the 'Vehicle Position History' API.

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