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

Re: Position Heading Questions?

From: Cameron McCormack <cam@mcc.id.au>
Date: Thu, 20 Nov 2008 10:27:06 +1100
To: public-geolocation <public-geolocation@w3.org>
Message-ID: <20081119232706.GC12761@arc.mcc.id.au>

Doug Turner:
> The |orientation| attribute denotes the direction of the hosting device 
> is facing 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.

It’s probably not a good idea to have an attribute that is either a
float or null.  You could do it, by using the ‘any’ type in the IDL, but
this isn’t common.  What about using NaN (and/or having a separate
orientationAvailable attribute)?

-- 
Cameron McCormack ≝ http://mcc.id.au/
Received on Wednesday, 19 November 2008 23:27:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 18:13:30 GMT