Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
2つのロケーションオブジェクトによって2つのジオロケーション間の距離を見つけることができます
こちらが下にあります
mLoc.distanceTo(mLocTarget)
mLocは現在のユーザーの場所であり、mLocTargetはAndroidのターゲットの場所です
今私は方向を見つけたいという意味も
16メートル。西または16メートル。北は可能ですか?
getBearing()は瞬間的な方位を返しますが、ポイント間の場合は次を使用します。
public float BearingTo(ロケーション宛先)
方位によって2つの場所間の方向を見つけることができます。