def GetStopsInBoundingBox(self, north, east, south, west, n):
    """Return a sample of up to n stops in a bounding box"""
    stop_list = []
    for s in self.stops.values():
      if (s.stop_lat <= north and s.stop_lat >= south and
          s.stop_lon <= east and s.stop_lon >= west):
        stop_list.append(s)
        if len(stop_list) == n:
          break
    return stop_list
def GetStopsInBoundingBox ( self , north , east , south , west , n ) : stop_list = [ ] for s in self . stops . values ( ) : if ( s . stop_lat <= north and s . stop_lat >= south and s . stop_lon <= east and s . stop_lon >= west ) : stop_list . append ( s ) if len ( stop_list ) == n : break return stop_list
Return a sample of up to n stops in a bounding box