Filter premature predictions from the feed
laaksma opened this issue · comments
In some cases the departure event can trigger prematurely for the first stop of a trip. This happens when the vehicle's gps position exits the stop area temporarily due to vehicle movement or an erroneous signal. This causes StopTimeUpdates to be generated for each stop of the trip, with times predicted as if the vehicle had already departed. We need to filter out these erroneous, too early predictions.