derhuerst/wifi-on-ice-position-stream
View on GitHubestimate speed if not reported in tunnels
Open
#2 opened on Feb 25, 2020
enhancementgood first issuehelp wanted
Repository metrics
- Stars
- (4 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
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()reportsnull. - The estimation doesn't poll
journey()too frequently, because it causes quite a bit more traffic than juststatus(). - If
journeys()takes very long to respond, the estimation shouldn't use it.