[whatwg] Geolocation API Proposal

Shyam Habarakada shyamh at microsoft.com
Tue Mar 18 11:49:24 PDT 2008

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 at lists.whatwg.org [mailto:whatwg-bounces at 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;

More information about the whatwg mailing list