What does bearingTo(Location dest) exactly calculate?

后端 未结 2 857
借酒劲吻你
借酒劲吻你 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

提交回复
热议问题