w3c / geolocation

W3C Geolocation API
https://www.w3.org/TR/geolocation/
81 stars 56 forks source link

Section 4.5.6: Value for speed for stationary device #55

Closed magnus-git closed 4 years ago

magnus-git commented 4 years ago

In Section 4.5.5, it is stated that a stationary hosting device should return NaN for heading. Shouldn't the same be true for the speed attribute returned by a stationary hosting device in Section 4.5.6? This could be a way of differentiating between a stationary device and a hosting device that temporarily has no speed (or heading).

reillyeon commented 4 years ago

The speed of a stationary device is 0 while the speed of a device which cannot detect it's speed is null. A stationary device returns NaN for the heading because heading is undefined for a device which is not moving. Implementation typically do not have the ability to detect that a device is incapable of moving.

samuelweiler commented 4 years ago

This makes sense to me. Tagging for tracking purposes and closing.