如何通过到另一个点的距离和方向计算一个点的经度和纬度

问题描述 投票:0回答:1

我正在计算要在哪里放置标记的纬度和经度,该标记是距已知位置的纬度和经度的特定距离和方向。这适用于使用HERE映射API的Android应用(Java)。

android position mapping here-api
1个回答
0
投票

我们的Android Mobile SDK(Java)当前支持通过distanceTo类的Geocoordinate方法计算两个地理坐标(纬度,经度)之间的距离。

https://developer.here.com/documentation/android-premium/api_reference_java/index.html

当前未提供您所请求的方法。但是,我们的JavaScript SDK提供了walk类的H.geo.Point方法。此方法根据给定的距离和相对于当前点的方位返回目标点。

https://developer.here.com/documentation/maps/topics_api/h-geo-point.html#h-geo-point__walk

该算法基于Haversine公式,因此您也可以使用该公式自己计算目标点。

© www.soinside.com 2019 - 2024. All rights reserved.