How should a program determine that the Google Earth API has fetched an accurate altitude for a location?
The Google Earth Plugin API has the following method to get ground altitude:
double GEGlobe.getGroundAltitude(double lat, double lon)
However, this function returns different results depending on the camera's distance from the targeted latitude, longitude. For example if the true altitude for a location is: +181.60
Calling the function when the camera is at different distances from the location returns the following altitudes:
Return values of getGroundAltitude at different camera positions:
-19.38 (camera is very far from location)
+06.11 (camera is now closer)
+89.13 (...)
+166.82
+177.47
+181.53 (camera is now v.close to the location)
The returned value 181.53 is close enough to true altitude of 181.60
The question is, how should the program determine that it has reliably got the most accurate altitude?