W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2008

[whatwg] Geolocation API Proposal

From: Shyam Habarakada <shyamh@microsoft.com>
Date: Tue, 18 Mar 2008 11:49:24 -0700
Message-ID: <F2726D43C21D084F81F9C887BE881BD14ECB9D7B10@NA-EXMSG-C105.redmond.corp.microsoft.com>
Given that location may change with time, Position should (must?) also include the Time at which the particular value was produced. Optionally, it would also be good to have the Position describe 'how' the location was determined (GPS, cell-tower triangulation, etc.)


-----Original Message-----
From: whatwg-bounces@lists.whatwg.org [mailto:whatwg-bounces@lists.whatwg.org] On Behalf Of Vladimir Vukicevic
Sent: Monday, March 17, 2008 9:32 PM


So, I'd suggest:

interface Position {
   readonly double latitude;
   readonly double longitude;
   readonly double altitude;

   readonly double horizontalAccuracy;
   readonly double veritcalAccuracy;

   readonly bool valid; // true if the fix is valid and exists; if
                        // false, then an error message is available
   readonly string errorMessage;
Received on Tuesday, 18 March 2008 11:49:24 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:40 UTC