geometry.haversine
Calculate the great-circle distance in kilometers between two Earth coordinates using the Haversine formula, with decimal degree latitude/longitude inputs and an adjustable Earth radius.
Instructions
하버사인 공식으로 두 지점의 지구 표면 대원 거리(km)를 계산한다. 위도(-9090)와 경도(-180180)는 도 단위 Decimal 문자열이고 지구 반지름 기본값은 6371km 다. mpmath 50자리 계산 후 유효숫자 30자리로 반환한다. 구면 근사이므로 실제 도로 거리나 타원체 거리와 다르며 라디안을 넣으면 안 된다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat1 | Yes | ||
| lat2 | Yes | ||
| lon1 | Yes | ||
| lon2 | Yes | ||
| earth_radius_km | No | 6371 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _meta | No | 서버가 붙이는 영수증(integrity), 엔진, 힌트 | |
| trace | Yes | 계산 근거(tool, formula, inputs, steps, output) | |
| distance_km | Yes |