derhuerst/wifi-on-ice-position-stream

estimate speed if not reported in tunnels

Open

#2 建立於 2020年2月25日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)JavaScript (1 fork)github user discovery
enhancementgood first issuehelp wanted

倉庫指標

Star
 (4 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

wifi-on-ice-portal-client's journey() now exposes a field distanceToPreviousStop in meters, which changes every few seconds. This could optionally be used to estimate the ICE speed if the speed field is null.

We should make sure that:

  • We only use the estimated speed when status() reports null.
  • The estimation doesn't poll journey() too frequently, because it causes quite a bit more traffic than just status().
  • If journeys() takes very long to respond, the estimation shouldn't use it.

貢獻者指南