anstosa / ferry.fyi

A better tracker for the Washington State Ferry System
https://ferry.fyi
GNU General Public License v3.0
11 stars 3 forks source link

Process for working around incorrect stats from API #23

Open mileserickson opened 5 years ago

mileserickson commented 5 years ago

Tokitae (scheduled 6:40 PM) is shown as having departed 32 minutes late at 7:12 PM but is still docked as of 7:20 PM.

If the API lies about departure times, maybe we could learn actual departure times from vessel position data instead?

5E6760EC-90FA-4EBF-BCC2-08EE73D50FEC 63CB3C6A-56B9-4760-BCBE-932D247E4085

anstosa commented 5 years ago

I think this is a related bug in their API to what we were seeing last week with the sub-full capacities for definitely full vessels. When a sailing is late enough to exceed the next scheduled departure (>30mins for Clinton/Mukilteo) WSF starts reporting many stats (Definitely car counts, but I think also departure times) erroneously associated with most recent scheduled sailing not the actual scheduled sailing for that vessel.

I think I need to add in an official process for correcting that kind of error. Currently I'm just hacking around it for cars in a way that's likely to break, just not as often or in as obvious ways