Class StopSearchServiceImpl

    • Constructor Detail

      • StopSearchServiceImpl

        public StopSearchServiceImpl()
    • Method Detail

      • searchForStopsByCode

        public SearchResult<org.onebusaway.gtfs.model.AgencyAndId> searchForStopsByCode​(String id,
                                                                                        int maxResultCount,
                                                                                        double minScoreToKeep)
                                                                                 throws IOException,
                                                                                        org.apache.lucene.queryparser.classic.ParseException
        Description copied from interface: StopSearchService
        Search for stop ids by stop code (see Stop.getCode()). Typically default to a search against Stop.getId() if no code is specified for a stop.
        Specified by:
        searchForStopsByCode in interface StopSearchService
        Parameters:
        id - the stop code query
        maxResultCount - maximum number of results to return
        minScoreToKeep - implementation-specific score cutoff for search results
        Returns:
        a search result for matching stop ids
        Throws:
        IOException
        org.apache.lucene.queryparser.classic.ParseException
      • searchForStopsByName

        public SearchResult<org.onebusaway.gtfs.model.AgencyAndId> searchForStopsByName​(String name,
                                                                                        int maxResultCount,
                                                                                        double minScoreToKeep)
                                                                                 throws IOException,
                                                                                        org.apache.lucene.queryparser.classic.ParseException
        Description copied from interface: StopSearchService
        Search for stop ids by stop name (see Stop.getName())
        Specified by:
        searchForStopsByName in interface StopSearchService
        Parameters:
        name - the stop code query
        maxResultCount - maximum number of results to return
        minScoreToKeep - implementation-specific score cutoff for search results
        Returns:
        a search result for matching stop ids
        Throws:
        IOException
        org.apache.lucene.queryparser.classic.ParseException