2012-01-20 4 views

答えて

6

座標の比較にはdistanceTo(Location dest)、位置の比較にはdistanceBetween(double startLatitude, double startLongitude, double endLatitude, double endLongitude, float[] results)を使用できます。

どちらの方法でも、2点間の距離がわかります。あなたが動的にそれを行う場合、あなたはより小さいと計算する必要があります。

詳細情報:Location Android

+1

はい私はそれをありがとうございます –

関連する問題