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.VehiclePositions.LiveVehiclePosition Class Reference

A live GPS vehicle position record. More...

Inheritance diagram for ReadingBusesAPI.VehiclePositions.LiveVehiclePosition:
ReadingBusesAPI.VehiclePositions.VehiclePosition

Public Member Functions

 LiveVehiclePosition ()
 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 vehicle. More...
 
async Task< HistoricJourney[]> GetLiveJourneyData ()
 Gets live journey tracking information for this vehicle. More...
 
- Public Member Functions inherited from ReadingBusesAPI.VehiclePositions.VehiclePosition
 VehiclePosition ()
 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...
 
Point GetPoint ()
 Gets the geographical position of the bus. More...
 

Properties

string ServiceId [get, set]
 Holds the Service Number for the bus route. More...
 
- Properties inherited from ReadingBusesAPI.VehiclePositions.VehiclePosition
Company Company [get, set]
 Holds the operators enum value. More...
 
string Vehicle [get, set]
 Holds the reference/identifier for the vehicle More...
 
DateTime Observed [get, set]
 Holds the time it was last seen/ new data was retrieved. More...
 
string Latitude [get, set]
 Latitude position of the bus More...
 
string Longitude [get, set]
 longitude position of the bus More...
 

Detailed Description

A live GPS vehicle position record.

Constructor & Destructor Documentation

◆ LiveVehiclePosition()

ReadingBusesAPI.VehiclePositions.LiveVehiclePosition.LiveVehiclePosition ( )

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

◆ GetLiveJourneyData()

async Task< HistoricJourney[]> ReadingBusesAPI.VehiclePositions.LiveVehiclePosition.GetLiveJourneyData ( )

Gets live journey tracking information for this vehicle.

Returns
The live journey tracing information for this vehicle.

◆ GetService()

BusService ReadingBusesAPI.VehiclePositions.LiveVehiclePosition.GetService ( )

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

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

Property Documentation

◆ ServiceId

string ReadingBusesAPI.VehiclePositions.LiveVehiclePosition.ServiceId
getset

Holds the Service Number for the bus route.


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