我正在计算要在哪里放置标记的纬度和经度,该标记是距已知位置的纬度和经度的特定距离和方向。这适用于使用HERE映射API的Android应用(Java)。
我们的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公式,因此您也可以使用该公式自己计算目标点。