def predictions(self, route=''):
        """
        Yields predicted bus ETAs for this stop.  You can specify a 
        route identifier for ETAs specific to one route, or leave `route`
        blank (done by default) to get information on all arriving busses.
        """   
        apiresponse = self.api.predictions(stpid=self.id, rt=route)['prd']
        if type(apiresponse) is list:        
            for prediction in apiresponse:
                try:
                    pobj = Prediction.fromapi(self.api, prediction)
                    pobj._stopobj = self
                    yield pobj
                except:
                    continue    
        else:
            pobj = Prediction.fromapi(self.api, apiresponse)
            pobj._stopobj = self
            yield pobj
def predictions ( self , route = '' ) : apiresponse = self . api . predictions ( stpid = self . id , rt = route ) [ 'prd' ] if type ( apiresponse ) is list : for prediction in apiresponse : try : pobj = Prediction . fromapi ( self . api , prediction ) pobj . _stopobj = self yield pobj except : continue else : pobj = Prediction . fromapi ( self . api , apiresponse ) pobj . _stopobj = self yield pobj
Yields predicted bus ETAs for this stop.  You can specify a 
        route identifier for ETAs specific to one route, or leave `route`
        blank (done by default) to get information on all arriving busses.