admin管理员组文章数量:1414928
Is there anyway with the HERE Javascript API to obtain an altitude given a specific latitude/longitude pair? The geo point returned by map.screenToGeo() only returns latitude and longitude as far as I can tell.
Is there anyway with the HERE Javascript API to obtain an altitude given a specific latitude/longitude pair? The geo point returned by map.screenToGeo() only returns latitude and longitude as far as I can tell.
Share Improve this question asked Aug 5, 2015 at 17:35 M. GarwoodM. Garwood 211 silver badge2 bronze badges4 Answers
Reset to default 6You can't do it with the HERE API, that I can see, but you can get that information from the Google Elevation API.
By making a GET call and passing in the latitude and longitude in the query, you can get back the altitude from sea level in meters:
https://maps.googleapis./maps/api/elevation/json?locations=40.714728,-73.998672
This will return a json object like this:
{
"results" : [
{
"elevation" : 8.883694648742676,
"location" : {
"lat" : 40.714728,
"lng" : -73.998672
},
"resolution" : 76.35161590576172
}
],
"status" : "OK"
}
More info: https://developers.google./maps/documentation/elevation/intro
There is a plenty different APIs in Internet. The most popular is google on that was mentioned above. Here is the another one here: https://algorithmia./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);
});
I know that the question has not been active in a long time but I happened to stumble upon the same doubt and found that this is posible using Here Routing API v8.
https://developer.here./documentation/routing-api/dev_guide/topics/use-cases/elevation-profile.html
No, I don't see how this is possible since latitude and longitude are just x and y coordinates and in no way convey any type of information as to the altitude.
本文标签: javascriptGetting altitude from latitude and longitude (HEREAPI)Stack Overflow
版权声明:本文标题:javascript - Getting altitude from latitude and longitude (HERE-API) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745152853a2644993.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论