Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7889193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:02:07+00:00 2026-06-03T06:02:07+00:00

How should a program determine that the Google Earth API has fetched an accurate

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T06:02:09+00:00Added an answer on June 3, 2026 at 6:02 am

    This is one of the pitfalls of Google Earth. The ground altitude thing depends on the quality of imagery that is available for that given point. So, it the imagery is good, the value will be accurate, if the imagery is bad the value could be bad.

    You can check how much imagery is loaded with getStreamingPercent() — the ground altitude value should get more accurate as the streaming percent increases.

    You may want to use Google’s elevation API, which actually calls out to get the data from an external server (where the % loaded doesn’t come into play.) The downside to this method is that it requires internet connectivity, so that’s something to keep in mind.

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

    Edit

    Another thing to remember, that getGroundAltitude() call is very finicky. It’s trying to get the value for a single point on the Earth — but it doesn’t have very good error checking (ie. it might not know the value for point X,Y, so it returns something wrong even though all points surrounding X,Y have valid data.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have program that has a variable that should never change. However, somehow, it
my program should print a message on the screen if the formula that the
The following line in my C program should provided All/Group/Owner read and write permissions
I have this program that should execute a piece of code base on the
Im writing a program that should read input via stdin, so I have the
I've made a program for my OOP class that does the following: Defines a
I've been writing a program that can determine any and every data about an
I wrote up a program that can sort words and determine any anagrams. I
This is actually my homework and the question states: The program should determine how
I'm doing a program that reads from a text file in order to determine

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.