OneBusAway / onebusaway-ios

OneBusAway for iOS, written in Swift.
Other
74 stars 31 forks source link

Attempts to fix wildly incorrect arrival-departure predictions #683

Closed aaronbrethorst closed 8 months ago

aaronbrethorst commented 9 months ago

Fixes https://github.com/OneBusAway/onebusaway-ios/issues/681

Before, we were nil'ing out ArrivalDeparture prediction dates whose values were 0. Now, instead, we'll just treat anything earlier than 2001 as being invalid.

Note: 2001 is an arbitrary early cutoff. It could just as easily be today - 1 month.