Skip to content

Commit

Permalink
Fixed issue OneBusAway#227
Browse files Browse the repository at this point in the history
  • Loading branch information
hubertgoeuropa committed Dec 9, 2019
1 parent a06d332 commit 5b10ace
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -800,8 +800,11 @@ public StopWithArrivalsAndDeparturesV2Bean getStopWithArrivalAndDepartures(
addToReferences(sad.getStop());

List<ArrivalAndDepartureV2Bean> ads = new ArrayList<ArrivalAndDepartureV2Bean>();
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<String> nearbyStopIds = new ArrayList<String>();
Expand Down

0 comments on commit 5b10ace

Please sign in to comment.