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

Represents a single instance of a bus visiting at a specific bus stop in the past. More...

Inheritance diagram for ReadingBusesAPI.TimeTable.HistoricVisit:
ReadingBusesAPI.TimeTable.Visit

Public Member Functions

 HistoricVisit ()
 The default constructor, used only for JSON Parsing. Will be made internal when System.Text.Json add support for internal constructors in a future update. More...
 
double ArrivalLateness ()
 How late the bus was to arrive at a bus stop. More...
 
double DepartureLateness ()
 How late the bus was to departure at a bus stop. More...
 
- Public Member Functions inherited from ReadingBusesAPI.TimeTable.Visit
 Visit ()
 The default constructor, used only for JSON Parsing. Will be made internal when System.Text.Json add support for internal constructors in a future update. More...
 

Properties

string ArrivalStatus [get, set]
 
string DepartureStatus [get, set]
 
DateTime? ActualArrival [get, set]
 The Actual Arrival time of the bus at the stop. More...
 
DateTime? ActualDeparture [get, set]
 The Actual Departure time of the bus at the stop. More...
 
- Properties inherited from ReadingBusesAPI.TimeTable.Visit
string AtcoCode [get, set]
 The unique identifier for the bus stop. More...
 
int Sequence [get, set]
 The sequence index value for which it is visited in. More...
 
string LocationName [get, set]
 The name of the location. More...
 
DateTime ScheduledArrival [get, set]
 The Scheduled Arrival time of the bus at the stop. More...
 
DateTime ScheduledDeparture [get, set]
 The Scheduled Departure time of the bus at the stop. More...
 
bool TimingPoint [get, set]
 Is this visit at a timing point stop or not. More...
 

Detailed Description

Represents a single instance of a bus visiting at a specific bus stop in the past.

Constructor & Destructor Documentation

◆ HistoricVisit()

ReadingBusesAPI.TimeTable.HistoricVisit.HistoricVisit ( )

The default constructor, used only for JSON Parsing. Will be made internal when System.Text.Json add support for internal constructors in a future update.

Member Function Documentation

◆ ArrivalLateness()

double ReadingBusesAPI.TimeTable.HistoricVisit.ArrivalLateness ( )

How late the bus was to arrive at a bus stop.

Returns
The number of seconds the bus was late to arrive by. If no arrival time can be found, 0 is returned.

◆ DepartureLateness()

double ReadingBusesAPI.TimeTable.HistoricVisit.DepartureLateness ( )

How late the bus was to departure at a bus stop.

Returns
The number of seconds the bus was late to departure by. If no departure time can be found, 0 is returned.

Property Documentation

◆ ActualArrival

DateTime? ReadingBusesAPI.TimeTable.HistoricVisit.ActualArrival
getset

The Actual Arrival time of the bus at the stop.

◆ ActualDeparture

DateTime? ReadingBusesAPI.TimeTable.HistoricVisit.ActualDeparture
getset

The Actual Departure time of the bus at the stop.

◆ ArrivalStatus

string ReadingBusesAPI.TimeTable.HistoricVisit.ArrivalStatus
getset

Unsure what these values represent, if you know, please let me know. The Siri Schema states the following classifiers should be present: "onTime" | "early" | "delayed" | "cancelled" | "arrived" | "departed" | "missed" | "noReport" | "notExpected"

◆ DepartureStatus

string ReadingBusesAPI.TimeTable.HistoricVisit.DepartureStatus
getset

Unsure what these values represent, if you know, please let me know. The Siri Schema states the following classifiers should be present: "onTime" | "early" | "delayed" | "cancelled" | "arrived" | "departed" | "missed" | "noReport" | "notExpected"


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