Get ground altitude in a reliable way

How should a program determine that the Google Earth API has chosen the exact height for a location?

The Google Earth Plugin API has the following method for obtaining ground elevation:

double GEGlobe.getGroundAltitude(double lat, double lon)

However, this function returns different results depending on the distance of the camera from a given latitude, longitude. For example, if the true height for the location is +181.60

The function call, when the camera is at different distances from the place, returns the following heights:

The return values ​​of getGroundAltitude at different camera positions:

-19.38 (the camera is very far from the location)

06.11 (camera closer)

+89.13 (...)

+166.82

177.47

+181.53 (camera now v.close to the place)

The return value of 181.53 is close enough to the true height of 181.60

, , ?

+3
1

Google . , . , , , , .

, getStreamingPercent() - , .

, API Google, (% ). , , - .

https://developers.google.com/maps/documentation/elevation/

Edit

, , getGroundAltitude() . - (.. X, Y, - , , X, Y .)

+2

All Articles