Package com.cta4j.bus.client.internal
Class BusClientImpl
java.lang.Object
com.cta4j.bus.client.internal.BusClientImpl
- All Implemented Interfaces:
BusClient
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.cta4j.bus.client.BusClient
BusClient.Builder -
Method Summary
Modifier and TypeMethodDescriptionRetrieves information about a specific bus by its ID.getDetours(String routeId, String direction) Retrieves aListof detours for a specific bus route and direction.getDirections(String routeId) Retrieves aListof directions for a specific bus route.Retrieves aListof all bus routes.getStopArrivals(String routeId, String stopId) Retrieves aListof upcoming arrivals for a specific bus route and stop.Retrieves aListof stops for a specific bus route and direction.
-
Method Details
-
getRoutes
Description copied from interface:BusClientRetrieves aListof all bus routes. -
getDirections
Description copied from interface:BusClientRetrieves aListof directions for a specific bus route.- Specified by:
getDirectionsin interfaceBusClient- Parameters:
routeId- the ID of the bus route- Returns:
- a
Listof directions for the specified bus route
-
getStops
Description copied from interface:BusClientRetrieves aListof stops for a specific bus route and direction. -
getStopArrivals
Description copied from interface:BusClientRetrieves aListof upcoming arrivals for a specific bus route and stop.- Specified by:
getStopArrivalsin interfaceBusClient- Parameters:
routeId- the ID of the bus routestopId- the ID of the bus stop- Returns:
- a
Listof upcoming arrivals for the specified bus route and stop
-
getDetours
Description copied from interface:BusClientRetrieves aListof detours for a specific bus route and direction.- Specified by:
getDetoursin interfaceBusClient- Parameters:
routeId- the ID of the bus routedirection- the direction of the bus route- Returns:
- a
Listof detours for the specified bus route and direction
-
getBus
Description copied from interface:BusClientRetrieves information about a specific bus by its ID.
-