You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Predictions are currently pulled every 60 seconds, as are trip positions. Unfortunately, if a client refreshes predictions the second before a pull, then the data age at client refresh is almost a full 120sec.
The fix, I think, is including the pull date in the nextservice response payload. Then we can calculate the data age in client side and subtract that from the prediction. We do that every second and update the value...and boom we have simulated real-time a la Track the T.
Predictions are currently pulled every 60 seconds, as are trip positions. Unfortunately, if a client refreshes predictions the second before a pull, then the data age at client refresh is almost a full 120sec.
The fix, I think, is including the pull date in the nextservice response payload. Then we can calculate the data age in client side and subtract that from the prediction. We do that every second and update the value...and boom we have simulated real-time a la Track the T.
thoughts?
/cc issue #65
The text was updated successfully, but these errors were encountered: