What does bearingTo(Location dest) exactly calculate?

后端 未结 2 854
借酒劲吻你
借酒劲吻你 2021-01-22 14:19

What does bearingTo(Location dest) exactly calculate? Can anyone please explain this??

Thanks in advance.

 protected void onCreate(Bundle sa         


        
相关标签:
2条回答
  • 2021-01-22 14:20

    Read the documentation please. It describes exactly that that method returns.

    Returns the approximate initial bearing in degrees East of true North when traveling along the shortest path between this location and the given location. The shortest path is defined using the WGS84 ellipsoid. Locations that are (nearly) antipodal may produce meaningless results.

    Parameters

    dest the destination location

    Returns

    the initial bearing in degrees

    0 讨论(0)
  • 2021-01-22 14:23

    Source : Android Developers Bearing is basically another ATTRIBUTE that is associated with Location object in Android. So, Location has lat, long and it can bearing, altitude, velocity. According to the method description getBearing() it means the horizontal direction of the device.

    Source : Wikipedia

    In land navigation, a bearing is ordinarily calculated in a clockwise direction starting from a reference direction of 0° and increasing to 359.9 degrees.[4] Measured in this way, a bearing is referred to as an azimuth by the US Army but not by armies in other English speaking nations, which use the term bearing.[5] If the reference direction is north (either true north, magnetic north, or grid north), the bearing is termed an absolute bearing. In a contemporary land navigation context, true, magnetic, and grid bearings are always measured in this way, with true north, magnetic north, or grid north being 0° in a 360-degree system.[4]

    0 讨论(0)
提交回复
热议问题