- Android
-
2014-08-11 - 更新:2014-08-19
LocationクラスのdistanceBetweenメソッドを使って、2点間の距離を取得することができます。
書式
Location.distanceBetween(
double startLatitude,
double startLongitude,
double endLatitude,
double endLongitude,
float[] results);
| startLatitude | 開始地点の緯度 |
|---|---|
| startLongitude | 開始地点の経度 |
| endLatitude | 終了地点の緯度 |
| endLongitude | 終了地点の経度 |
| results | 結果を格納する変数 |
9,511 views




