How to find altitude by coordinates?

920 Views Asked by At

I want to find altitude based on given latitude and longitude value. Is there a math to calculating this? Can you help if there is any formula?

For example:

When I enter latitude and longitude values for any place in Brooklyn

40.67828, -73.94594

I want to calculate the altitude of this place:

Altitude: 19 m

1

There are 1 best solutions below

0
On

Do you have access to Google Elevation API (or to any map api)? This is the only way to calculate the altitude given the coordinates, otherwise it is not possible to calculate it through a formula.

Also, you can find many similar questions as: Getting altitude from latitude and longitude (HERE-API)