Getting altitude from latitude and longitude (HERE-API)

Is there anyway the HERE API to get the height given by a specific latitude / longitude pair? As far as I can tell, the geo point returned by map.screenToGeo () returns only latitude and longitude.

0
source share
3 answers

You cannot do this using the HERE API, which I see, but you can get this information from the Google Elevation API.

By making a GET call and passing in latitude and longitude in the request, you can return the height from sea level in meters:

https://maps.googleapis.com/maps/api/elevation/json?locations=40.714728,-73.998672 

This will return a json object as follows:

 { "results" : [ { "elevation" : 8.883694648742676, "location" : { "lat" : 40.714728, "lng" : -73.998672 }, "resolution" : 76.35161590576172 } ], "status" : "OK" } 

Additional information: https://developers.google.com/maps/documentation/elevation/intro

+3
source

There are many APIs on the Internet. The most popular is google, which was mentioned above. Here is another one here: https://algorithmia.com/algorithms/Gaploid/Elevation

 var input = { "lat": "50.2111", "lon": "18.1233" }; Algorithmia.client("YOUR_API_KEY") .algo("algo://Gaploid/Elevation/0.3.0") .pipe(input) .then(function(output) { console.log(output); }); 
0
source

No, I don’t understand how this is possible, since latitude and longitude are just the x and y coordinates and in no way transmit height information.

-3
source

All Articles