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

Represents a journey, which is a grouping of Visit objects, or a specific service doing one single direction of the route. A timetable for a service is made up of multiple journeys. More...

Inheritance diagram for ReadingBusesAPI.TimeTable.Journey:
ReadingBusesAPI.TimeTable.HistoricJourney

Public Member Functions

 Journey ()
 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...
 
BusService GetService ()
 Gets a reference to the service that is associated with this journey. More...
 

Properties

int Id [get, set]
 The unique identifier for a journey. More...
 
Company Company [get, set]
 The bus operator of the service. More...
 
string ServiceId [get, set]
 The name/id for the bus service. More...
 
string JourneyPattern [get, set]
 The JourneyPattern value. This seems unused within the API. More...
 
string RunningBoard [get, set]
 The Running Board ID. A running board refers to the trips that the vehicle will execute that day More...
 
string Duty [get, set]
 The Duty ID, which is a timetable of trips a driver is expected to execute that day. More...
 
string JourneyCode [get, set]
 The Journey Code. Seems to server same purpose as the Id value? More...
 
DateTime ScheduledStart [get, set]
 The Scheduled Start time of the journey. This is normally the time of the first stop visit. More...
 
Visit[] Visits [get, set]
 An array of timetabled visits contained within this journey. More...
 

Detailed Description

Represents a journey, which is a grouping of Visit objects, or a specific service doing one single direction of the route. A timetable for a service is made up of multiple journeys.

Constructor & Destructor Documentation

◆ Journey()

ReadingBusesAPI.TimeTable.Journey.Journey ( )

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

◆ GetService()

BusService ReadingBusesAPI.TimeTable.Journey.GetService ( )

Gets a reference to the service that is associated with this journey.

Returns
Returns a Bus Service object for the associated service. Null if unknown within the API.

Property Documentation

◆ Company

Company ReadingBusesAPI.TimeTable.Journey.Company
getset

The bus operator of the service.

◆ Duty

string ReadingBusesAPI.TimeTable.Journey.Duty
getset

The Duty ID, which is a timetable of trips a driver is expected to execute that day.

◆ Id

int ReadingBusesAPI.TimeTable.Journey.Id
getset

The unique identifier for a journey.

◆ JourneyCode

string ReadingBusesAPI.TimeTable.Journey.JourneyCode
getset

The Journey Code. Seems to server same purpose as the Id value?

◆ JourneyPattern

string ReadingBusesAPI.TimeTable.Journey.JourneyPattern
getset

The JourneyPattern value. This seems unused within the API.

◆ RunningBoard

string ReadingBusesAPI.TimeTable.Journey.RunningBoard
getset

The Running Board ID. A running board refers to the trips that the vehicle will execute that day

◆ ScheduledStart

DateTime ReadingBusesAPI.TimeTable.Journey.ScheduledStart
getset

The Scheduled Start time of the journey. This is normally the time of the first stop visit.

◆ ServiceId

string ReadingBusesAPI.TimeTable.Journey.ServiceId
getset

The name/id for the bus service.

◆ Visits

Visit [] ReadingBusesAPI.TimeTable.Journey.Visits
getset

An array of timetabled visits contained within this journey.


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