Problem 1371. Altitude of locations on the earth
Find the altitude of a location on the earth, given latitude and longitude coordinates, above mean sea level.
Input___________Latitude and Longitude in decimal degrees.
Output_________ Altitude in meters.
Example:
Everest (27.988056°N 86.925278°E) ----> Height: 8816.663 m (from Google Maps)
Solution Stats
Problem Comments
-
12 Comments
Show
9 older comments
Rafael S.T. Vieira
on 4 Nov 2020
I've tried several available satellites on the internet, and none of them show depth. And, in general, we probably can say that sites with GPS only care about places where land vehicles can cross. Requesting depth makes it a problem that is solvable only with google or some other paid service (probably).
PS: Even NASA's database don't give access to such information according to https://www.gpsvisualizer.com/elevation
goc3
on 4 Nov 2020
Those are more good points, Rafael. I commented out the test cases with negative results (#4, 5).
Rafael S.T. Vieira
on 4 Nov 2020
Thanks again, goc3. Now it's working without requiring Google maps or a paid service. :)
Solution Comments
Show commentsProblem Recent Solvers14
Suggested Problems
-
3417 Solvers
-
1969 Solvers
-
282 Solvers
-
148 Solvers
-
621 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!