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 Type
    Method
    Description
    Retrieves the available travel directions for the specified route (e.g., Northbound, Southbound).
  • Method Details

    • findByRouteId

      List<String> findByRouteId(String routeId)
      Retrieves the available travel directions for the specified route (e.g., Northbound, Southbound).
      Parameters:
      routeId - the route identifier
      Returns:
      a List of direction identifiers for the route, or an empty List if the route has no associated directions
      Throws:
      NullPointerException - if routeId is null