opentraffic / architecture

OTv1 overview
70 stars 11 forks source link

tripline segment completions aren't valid if they're interrupted #20

Closed bmander closed 9 years ago

bmander commented 9 years ago

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.

bmander commented 9 years ago

implemented with ed03f1ec7e26526d2f35273cf7ee39c98b031523