私は計算関数とlatlng値を持っていますが、最初と最後の間の距離をどのように計算しますか?2点間の距離を計算するにはどうすればよいですか?
function calculate() {
//poo abbreviation for point of origin not poo=shit
var poolat = locations[0].lat;
var poolng = locations[0].lng;
var destlat = locations[locations.length - 1].lat;
var destlng = locations[locations.length - 1].lng;
あなたの投稿にはもっと答えが必要です。あなたは2つのポイント間の直線距離を探していますか(カラスが飛ぶように)? – Tom
はい、空中距離は、私はそれが働いて、とにかくありがとうございました – dbzabuse