W3C home > Mailing lists > Public > public-geolocation@w3.org > November 2009

Re: what's the heading when the device is not moving?

From: Richard Barnes <rbarnes@bbn.com>
Date: Tue, 10 Nov 2009 00:41:32 +0900
Cc: public-geolocation@w3.org
Message-Id: <72ABAB58-3542-4F2C-B74C-675C6B2FAD53@bbn.com>
To: Max Froumentin <maxfro@opera.com>
We just need to pick a convention here. My vote is for "null" or "NaN"  
-- if you're not moving, then "heading" is undefined.
--Richard


On Nov 9, 2009, at 7:39 PM, Max Froumentin wrote:

> Should it be:
>
> - null (but then we don't differentiate between when the device  
> doesn't report heading values and when the device is still)
> - Compass direction (in which case we must change "direction of  
> travel" below
> - NaN
>
>
> From the specification
> [[
> The heading attribute denotes the direction of travel of the hosting  
> device and is specified in degrees counting clockwise relative to  
> the true north. If the implementation cannot provide heading  
> information, the value of this attribute must be null.
> ]]
>
> Max.
>
Received on Monday, 9 November 2009 15:42:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:33:56 UTC