有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!


共 (2) 个答案

  1. # 1 楼答案

    在提问之前先阅读documentation

    Computes the approximate distance in meters between two locations, and optionally the initial and final bearings of the shortest path between them. Distance and bearing are defined using the WGS84 ellipsoid.

    计算的距离存储在结果[0]中。如果结果长度为2 或者更大,初始方位存储在结果1中。如果结果 长度大于等于3时,最终轴承存储在结果[2]中

    这个方法在数组中返回的所有信息

  2. # 2 楼答案

    正如Android开发指南中提到的:

    计算的距离存储在结果[0]中。如果结果的长度为2或更大,则初始轴承将存储在结果[1]中。如果结果的长度为3或更大,则最终轴承将存储在结果[2]中