Return all stops visited by trips for this agency.
493820
def stops(self):
    """"""
    stops = set()
    for stop_time in self.stop_times():
      stops |= stop_time.stops()
    return stops
673526
def GetCountStopTimes(self):
    """"""
    cursor = self._schedule._connection.cursor()
    cursor.execute(
        'SELECT count(*) FROM stop_times WHERE trip_id=?', (self.trip_id,))
    return cursor.fetchone()[0]
849825
def get_departures(self, station):
        
        url = 'http://webservices.ns.nl/ns-api-avt?station=' + station

        raw_departures = self._request('GET', url)
        return self.parse_departures(raw_departures)
734737
public Iterable<StopTime> getOrderedStopTimesForTrip (String trip_id) {
        Map<Fun.Tuple2, StopTime> tripStopTimes =
                stop_times.subMap(
                        Fun.t2(trip_id, null),
                        Fun.t2(trip_id, Fun.HI)
                );
        return tripStopTimes.values();
    }
849480
def get_locations(self, locations, as_list=False):
        

        indexes = [self._index[x] for x in locations]
        return self.get(indexes, as_list)
426681
def get_actual(cls, trip_list, time):
        
        for trip in trip_list:
            if simple_time(trip.departure_time_planned) == time:
                return trip
        return None
611692
def destinations(stop):
    """"""
    from pyruter.api import Departures

    async def get_destinations():
        """Get departure information."""
        async with aiohttp.ClientSession() as session:
            data = Departures(LOOP, stop, session=session)
            result = await data.get_final_destination()
            print(json.dumps(result, indent=4, sort_keys=True,
                             ensure_ascii=False))
    LOOP.run_until_complete(get_destinations())
952088
def get_all_incomings(chebi_ids):
    ''''''
    all_incomings = [get_incomings(chebi_id) for chebi_id in chebi_ids]
    return [x for sublist in all_incomings for x in sublist]
250202
def get_activities(self, activity_ids=None, max_records=50):
        
        return self.connection.get_all_activities(self, activity_ids,
                                                  max_records)
239220
def handle_json_GET_neareststops(self, params):
    """'"""
    schedule = self.server.schedule
    lat = float(params.get('lat'))
    lon = float(params.get('lon'))
    limit = int(params.get('limit'))
    stops = schedule.GetNearestStops(lat=lat, lon=lon, n=limit)
    return [StopToTuple(s) for s in stops]
1039178
@Pure
	public Iterable<BusStop> busStops() {
		final MultiCollection<BusStop> col = new MultiCollection<>();
		col.addCollection(this.validBusStops);
		col.addCollection(this.invalidBusStops);
		return Iterables.unmodifiableIterable(col);
	}
944930
def get_destinations(self, ascii_listing):
        
        self.destinations = set()
        def collect_destinations(matchobj):
            numbers = matchobj.group("no")
            if numbers:
                self.destinations.update(set(
                    [n.strip() for n in numbers.split(",")]
                ))

        for line in self._iter_lines(ascii_listing):
            self.renum_regex.sub(collect_destinations, line)

        return sorted([int(no) for no in self.destinations if no])
25083
def all(self):
        """"""
        return self._instance._client.acls.all(self._instance.name)
1317193
final BusGroup[] getAllBuses()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
    {
      SibTr.entry(tc, "getAllBuses");
      SibTr.exit(tc, "getAllBuses", _buses);
    }

    return _buses;
  }
864976
public List<Destination> getDestinations() {
        List<Destination> destinations = new ArrayList<Destination>();
        Iterator<JMSDestination> destinationIterator =
            jmsDestinations.values().iterator();
        while(destinationIterator.hasNext()) {
            destinations.add(destinationIterator.next().destination);
        }
        return destinations;
    }
936348
def all_locations(self):
        '''
        
        '''
        qs = self.assoc_locations.all()
        for node in self.get_descendants():
            qs2 = node.assoc_locations.all()
            qs = qs.union(qs2).distinct('pk')
        return qs
1087421
def destinations(self):
        
        session = meta.Session()
        sel = select([distinct(model.frames_table.c.destination)])
        result = session.execute(sel)
        return set([r[0] for r in result.fetchall()])