![]() |
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.
|
A live GPS vehicle position record. More...
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... | |
![]() | |
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... | |
![]() | |
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... | |
A live GPS vehicle position record.
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.
async Task< HistoricJourney[]> ReadingBusesAPI.VehiclePositions.LiveVehiclePosition.GetLiveJourneyData | ( | ) |
Gets live journey tracking information for this vehicle.
BusService ReadingBusesAPI.VehiclePositions.LiveVehiclePosition.GetService | ( | ) |
Gets a reference to the service that is associated with this vehicle.
|
getset |
Holds the Service Number for the bus route.