[whatwg] Geolocation API Proposal

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.)

shyam

-----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

<snip>

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