如何根据与另一点的距离和方向计算一个点的纬度和经度

How to calculate Latitude and Longitude of a point by distance and direction from another point

我正在计算放置标记的位置的纬度和经度,该标记距离已知位置的纬度和经度有特定的距离和方向。这是针对使用 HERE 映射 API.

的 Android 应用程序(在 Java 中)

我们的 Android Mobile SDK (Java) 目前支持通过 Geocoordinate [=30] 的 distanceTo 方法计算两个地理坐标 (lat, lon) 之间的距离=].

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

目前没有提供您请求的方法。但是,我们的 JavaScript SDK 提供了 H.geo.Point class 的 walk 方法。此方法 returns 目标点,基于给定的距离和相对于当前点的方位角。

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

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