-
public class OasthLive.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static OasthLive.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final List<Coordinates>getRoutePoints(Integer routeID)Gets list of points that can be used for a detailed representation of a route. final List<Coordinates>getRoutePoints(BusRoute route)Does the same thing as getRoutePoints, but uses the ID of the given BusRoute object final List<BusArrival>getStopArrivals(Integer stopID)Get information about estimated bus arrival times to a stop. final List<BusArrival>getStopArrivals(BusStop stop)Does the same thing as getStopArrivals, but uses the ID of the given BusStop. final List<BusLocation>getBusLocations(Integer routeID)Gets the location of all the buses on the given route. final List<BusLocation>getBusLocations(BusRoute route)Does the same thing as getBusLocations, bus uses the ID of the given BusRoute -
-
Method Detail
-
getRoutePoints
final List<Coordinates> getRoutePoints(Integer routeID)
Gets list of points that can be used for a detailed representation of a route.
- Parameters:
routeID- Internal ID of the route
-
getRoutePoints
final List<Coordinates> getRoutePoints(BusRoute route)
Does the same thing as getRoutePoints, but uses the ID of the given BusRoute object
-
getStopArrivals
final List<BusArrival> getStopArrivals(Integer stopID)
Get information about estimated bus arrival times to a stop.
If the returned list is empty, no buses are due to arrive at the stop or an invalid stop ID was given.
- Parameters:
stopID- Internal ID of the stop
-
getStopArrivals
final List<BusArrival> getStopArrivals(BusStop stop)
Does the same thing as getStopArrivals, but uses the ID of the given BusStop.
-
getBusLocations
final List<BusLocation> getBusLocations(Integer routeID)
Gets the location of all the buses on the given route.
If the returned list is empty, no buses are on the route or the given route ID is invalid.
-
getBusLocations
final List<BusLocation> getBusLocations(BusRoute route)
Does the same thing as getBusLocations, bus uses the ID of the given BusRoute
-
-
-
-