Stores information about a single bus stop. Related to the "List Of Bus Stops" API.
More...
Stores information about a single bus stop. Related to the "List Of Bus Stops" API.
◆ BusStop() [1/3]
ReadingBusesAPI.BusStops.BusStop.BusStop |
( |
| ) |
|
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.
◆ BusStop() [2/3]
Constructs a BusStop object from an intermediary bus stop object.
- Parameters
-
intermediary | Intermediary bus stop. |
◆ BusStop() [3/3]
ReadingBusesAPI.BusStops.BusStop.BusStop |
( |
string |
actoCode | ) |
|
Used to create a snub/ fake object for passing to function calls, if all you need to pass is an acto-code to the function.
- Parameters
-
actoCode | ID of the bus stop. |
Unless you are doing something very strange, you probably should not need to use this, it is more for testing purposes.
◆ Equals()
override bool ReadingBusesAPI.BusStops.BusStop.Equals |
( |
object |
obj | ) |
|
States if two objects are the same as each other or not.
- Parameters
-
obj | Other bus stop object. |
- Returns
- True if acto codes match.
◆ GetArchivedTimeTable() [1/2]
Task< HistoricJourney[]> ReadingBusesAPI.BusStops.BusStop.GetArchivedTimeTable |
( |
DateTime |
date | ) |
|
Gets the archived real bus departure and arrival times along with their time table history at this specific bus stop.
- Parameters
-
date | The date you want time table data for. This should be a date in the past. |
- Returns
◆ GetArchivedTimeTable() [2/2]
Gets the archived real bus departure and arrival times along with their time table history at this specific bus stop.
- Parameters
-
date | The date you want time table data for. This should be a date in the past. |
service | (optional) the service you want time table data for specifically. If null, you get time table data for all services at this stop. |
- Returns
◆ GetHashCode()
override int ReadingBusesAPI.BusStops.BusStop.GetHashCode |
( |
| ) |
|
Hashcode of the object is based on the acto code as this uniquely identifies the stop.
- Returns
◆ GetLiveData()
async Task< LiveRecord[]> ReadingBusesAPI.BusStops.BusStop.GetLiveData |
( |
| ) |
|
Gets live data from a bus stop.
- Returns
- Returns a list of Live Records, which are individual buses due to arrive at the bus stop.
◆ GetPoint()
Point ReadingBusesAPI.BusStops.BusStop.GetPoint |
( |
| ) |
|
Gets the geographical position of the bus stop.
- Returns
- A Point Object for the position of the bus stop.
◆ GetServices()
Finds the 'BusService' object for all of the bus services which visit this stop.
- Parameters
-
- Returns
- A list of BusService Objects for services which visit this bus stop.
◆ GetTimeTable() [1/2]
Task< Journey[]> ReadingBusesAPI.BusStops.BusStop.GetTimeTable |
( |
DateTime |
date | ) |
|
Gets time table data at this specific bus stop.
- Parameters
-
date | The date you want time table data for. |
- Returns
- An array of time table records for a particular bus stop.
- Exceptions
-
ReadingBusesApiExceptionMalformedQuery | If you have not provided any date. |
ReadingBusesApiExceptionBadQuery | Thrown if the API responds with an error message. |
ReadingBusesApiExceptionCritical | Thrown if the API fails, but provides no reason. |
◆ GetTimeTable() [2/2]
Task< Journey[]> ReadingBusesAPI.BusStops.BusStop.GetTimeTable |
( |
DateTime |
date, |
|
|
BusService |
service |
|
) |
| |
Gets time table data at this specific bus stop.
- Parameters
-
date | The date you want time table data for. |
service | (optional) the service you want time table data for specifically. If null, you get time table data for all services at this stop. |
- Returns
- An array of time table records for a particular bus stop.
- Exceptions
-
ReadingBusesApiExceptionMalformedQuery | If you have not provided any date. |
ReadingBusesApiExceptionBadQuery | Thrown if the API responds with an error message. |
ReadingBusesApiExceptionCritical | Thrown if the API fails, but provides no reason. |
◆ Merge()
Combines two bus stops together that are the same, but report different services that stop at the them.
- Parameters
-
otherStop | The other stop to merge with this one. |
◆ ActoCode
string ReadingBusesAPI.BusStops.BusStop.ActoCode |
|
getset |
The unique identifier for a bus stop.
◆ BayNumber
string ReadingBusesAPI.BusStops.BusStop.BayNumber |
|
getset |
The bus stop bay number, may be null if not applicable.
◆ Bearing
string ReadingBusesAPI.BusStops.BusStop.Bearing |
|
getset |
The bearing of the bus stop
◆ CommonName
string ReadingBusesAPI.BusStops.BusStop.CommonName |
|
getset |
The public, easy to understand stop name.
◆ Latitude
string ReadingBusesAPI.BusStops.BusStop.Latitude |
|
getset |
The latitude of the bus stop
◆ Longitude
string ReadingBusesAPI.BusStops.BusStop.Longitude |
|
getset |
The longitude of the bus stop
◆ ServiceObjects
A reference to the bus services at this stop.
The documentation for this class was generated from the following file: