Reading Buses APIV2.1.0
A C#, .net Standard Library for the Reading Buses Open Data API (http://rtl2.ods-live.co.uk/cms/apiservice), available to use in your C# console, WPF, UWP or Win Form Applications.
ReadingBusesAPI.VehiclePositions.LivePosition Class Reference

Used to store live information about a buses GPS position. Related to the "Live Vehicle Positions" API. More...

Inheritance diagram for ReadingBusesAPI.VehiclePositions.LivePosition:
ReadingBusesAPI.VehiclePositions.ArchivedPositions

Public Member Functions

BusService GetService ()
Finds the 'BusService' object related to the record. More...
- Public Member Functions inherited from ReadingBusesAPI.VehiclePositions.ArchivedPositions
Point GetPoint ()
Gets the geographical position of the bus. More...

Package Functions

LivePosition ()
The default constructor, which sets the 'LastRetrieval' to current time. More...
- Package Functions inherited from ReadingBusesAPI.VehiclePositions.ArchivedPositions
ArchivedPositions ()
The default constructor, which sets the 'LastRetrieval' to current time. More...

Properties

string ServiceId [get, set]
Holds the Service Number for the bus route. More...
string Bearing [get, set]
bearing direction of the bus More...
- Properties inherited from ReadingBusesAPI.VehiclePositions.ArchivedPositions
Company OperatorCode [get, set]
Holds the operators enum value. More...
string Vehicle [get, set]
Holds the reference/identifier for the vehicle More...
DateTimeOffset 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

Used to store live information about a buses GPS position. Related to the "Live Vehicle Positions" API.

Constructor & Destructor Documentation

LivePosition()

ReadingBusesAPI.VehiclePositions.LivePosition.LivePosition ( )
package

The default constructor, which sets the 'LastRetrieval' to current time.

Member Function Documentation

GetService()

BusService ReadingBusesAPI.VehiclePositions.LivePosition.GetService ( )

Finds the 'BusService' object related to the record.

Returns
The related 'BusService' object.

Property Documentation

Bearing

string ReadingBusesAPI.VehiclePositions.LivePosition.Bearing
get set

bearing direction of the bus

ServiceId

string ReadingBusesAPI.VehiclePositions.LivePosition.ServiceId
get set

Holds the Service Number for the bus route.


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