• 두 점 사이의 거리를 계산하는 함수입니다.

    Parameters

    • from: PointGeo | Feature<Point, {
          [name: string]: any;
      }> | Coord

      기준이 되는 Point 또는 그 좌표입니다.

    • to: PointGeo | Feature<Point, {
          [name: string]: any;
      }> | Coord

      도착점이 되는 Point 또는 그 좌표입니다.

    • Optional options: {
          units?: Unit;
      }

      거리를 측정하는데 사용되는 단위입니다.

      • Optional units?: Unit

    Returns number

    계산된 결과입니다.

    Example

    const coordinate1 = [127.02222, 37.49144];
    const coordinate2 = [127.015522, 37.49044];
    const res = analysis.measurement.distance(coordinate1, coordinate2, {units: "kilometers"})

    See

    Calculate distance between points 두 점 사이의 거리를 계산하는 예제

Generated using TypeDoc