distanceTo method

double distanceTo(
  1. NLatLng other
)

다른 위치와 얼마나 떨어져 있는지 구하는 메서드입니다. 반환값은 인자로 넘겨준 지점과 얼마나 떨어져있는지 미터(m) 단위로 반환합니다.

Implementation

double distanceTo(NLatLng other) {
  if (this == other) return 0;
  return MathUtil.measureDistance(
      latitude, longitude, other.latitude, other.longitude);
}