Right now if a vehicle trips A1, then B1, then A2, then B2, it will emit two different speed estimates, at the completion of both segment A and segment B. The idea there is that the vehicle may have actually traversed segment A or segment B, but probably not both. Since we have no way to say which one it was, we might as well emit a speed estimate for both.
Considering that such a case is actually impossible, one simple solution is to only emit a speed estimate only if the last two tripline crossings are adjacent on a way.
Right now if a vehicle trips A1, then B1, then A2, then B2, it will emit two different speed estimates, at the completion of both segment A and segment B. The idea there is that the vehicle may have actually traversed segment A or segment B, but probably not both. Since we have no way to say which one it was, we might as well emit a speed estimate for both.
Considering that such a case is actually impossible, one simple solution is to only emit a speed estimate only if the last two tripline crossings are adjacent on a way.