OneBusAway/onebusaway-application-modules — pull request #10 by jeffmaki (2012-04-17 15:31:48+00:00)
Title: Fix to bundle building process to detect duplicate stop times and remove them so OBA functionality to interpolate them can be invoked.

So the logic is to traverse the sorted set of stop times, and compare the current one to the last one that we didn't change/clear. If the stop times are equal, we clear the duplicate arrival and or departure time, so the existing OBA functionality to interpolate them based on DAT can fix up the times.

Unit test attached, also tested with a formerly bad trace from MTA Bus Time.