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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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;
};


Reply via email to