Class ScheduledServiceServiceImpl

    • Constructor Detail

      • ScheduledServiceServiceImpl

        public ScheduledServiceServiceImpl()
    • Method Detail

      • routeHasUpcomingScheduledService

        public Boolean routeHasUpcomingScheduledService​(String agencyId,
                                                        long time,
                                                        String routeId,
                                                        String directionId)
        Description copied from interface: ScheduleHelperService
        Check for scheduled service for the given route over the specified time period. That is, are any buses scheduled to visit this route in the next time period?
        Specified by:
        routeHasUpcomingScheduledService in interface ScheduleHelperService
        Parameters:
        agencyId - agency of the route
        time - period to check within
        routeId - of route to check
        directionId - of the route to check
        Returns:
        True if scheduled service is found
      • stopHasUpcomingScheduledService

        public Boolean stopHasUpcomingScheduledService​(String stopAgencyId,
                                                       long time,
                                                       String stopId,
                                                       String routeId,
                                                       String directionId)
        Description copied from interface: ScheduleHelperService
        Check for scheduled service for the given route/stop pairing over the specified time period. This is, are any buses scheduled to visit this stop on this route in the next time period?
        Specified by:
        stopHasUpcomingScheduledService in interface ScheduleHelperService
        Parameters:
        stopAgencyId - agency of the route
        time - period of to check within
        stopId - of the stop to check
        routeId - of the route to check
        directionId - of the route to check
        Returns:
        True if scheduled service is found
      • stopHasRevenueServiceOnRoute

        public Boolean stopHasRevenueServiceOnRoute​(String agencyId,
                                                    String stopId,
                                                    String routeId,
                                                    String directionId)
        Description copied from interface: ScheduleHelperService
        Given a stop, route, and direction, test if that stop has revenue service on the given route in the given direction.
        Specified by:
        stopHasRevenueServiceOnRoute in interface ScheduleHelperService
        Parameters:
        agencyId - Agency ID of stop; used only for routing requests to federated backends
        stopId - Agency-and-ID of stop being tested
        routeId - Agency-and-ID of route to filter for
        directionId - Direction ID to filter for
        Returns:
        true if the stop being tested ever permits boarding or alighting from the specified route in the specified direction in the currently-loaded bundle; false otherwise
      • stopHasRevenueService

        public Boolean stopHasRevenueService​(String agencyId,
                                             String stopId)
        Description copied from interface: ScheduleHelperService
        Given a stop, test if that stop has revenue service.
        Specified by:
        stopHasRevenueService in interface ScheduleHelperService
        Parameters:
        agencyId - Agency ID of stop; used only for routing requests to federated backends
        stopId - Agency-and-ID of stop being tested
        Returns:
        true if the stop being tested ever permits boarding or alighting from any route in any direction in the currently-loaded bundle; false otherwise
      • getSearchSuggestions

        public List<String> getSearchSuggestions​(String agencyId,
                                                 String input)
        Description copied from interface: ScheduleHelperService
        Given the following partial input, lookup route names that "match". The definition of "match" is left to the implementor. This method can be the basis for autocompleting text in a user interface.
        Specified by:
        getSearchSuggestions in interface ScheduleHelperService
        Parameters:
        agencyId - to constrain the search against; may be null.
        input - partial text representing a GTFS route short name.
        Returns:
        a list of GTFS short names that may qualify.