diff --git a/onebusaway-api-core/src/main/java/org/onebusaway/api/model/transit/BeanFactoryV2.java b/onebusaway-api-core/src/main/java/org/onebusaway/api/model/transit/BeanFactoryV2.java index 220d4acd72..9ecc7755f5 100644 --- a/onebusaway-api-core/src/main/java/org/onebusaway/api/model/transit/BeanFactoryV2.java +++ b/onebusaway-api-core/src/main/java/org/onebusaway/api/model/transit/BeanFactoryV2.java @@ -800,8 +800,11 @@ public StopWithArrivalsAndDeparturesV2Bean getStopWithArrivalAndDepartures( addToReferences(sad.getStop()); List ads = new ArrayList(); - for (ArrivalAndDepartureBean ad : sad.getArrivalsAndDepartures()) + for (ArrivalAndDepartureBean ad : sad.getArrivalsAndDepartures()) { + if(ad.isPredicted() && ad.getPredictedArrivalTime() == 0 && ad.getNumberOfStopsAway() < 0) + continue; ads.add(getArrivalAndDeparture(ad)); + } bean.setArrivalsAndDepartures(ads); List nearbyStopIds = new ArrayList();