Package com.cta4j.bus.direction
Interface DirectionsApi
@NullMarked
public interface DirectionsApi
Provides access to direction-related endpoints of the CTA BusTime API.
This API allows retrieval of available travel directions for a given route.
-
Method Summary
Modifier and TypeMethodDescriptionfindByRouteId(String routeId) Retrieves the available travel directions for the specified route (e.g., Northbound, Southbound).
-
Method Details
-
findByRouteId
Retrieves the available travel directions for the specified route (e.g., Northbound, Southbound).- Parameters:
routeId- the route identifier- Returns:
- a
Listof direction identifiers for the route, or an emptyListif the route has no associated directions - Throws:
NullPointerException- ifrouteIdisnull
-