RouteLeg型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The distance and the bearings between two places.
インポート
import type { RouteLeg } from "@johnmorrisdotca/chikyu-earth";
定義
interface RouteLeg {
kilometres: number;
greatCircleKm: number;
initialBearing: number;
finalBearing: number;
flightHours: number;
midpoint: GeoPoint;
exact: boolean;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
kilometres | number | Geodesic distance on WGS84, kilometres. The great-circle distance when the geodesic did not converge. |
greatCircleKm | number | Great-circle distance on a sphere of |
initialBearing | number | Degrees clockwise from north, 0 to 360, at the start. |
finalBearing | number | Degrees clockwise from north, 0 to 360, at the end. |
flightHours | number | Hours at |
midpoint | GeoPoint | The point halfway along the geodesic (or the great circle, when the geodesic did not converge). |
exact | boolean | False when Vincenty's formula did not converge (nearly antipodal): the distance is then the great circle. |
例
import type { RouteLeg } from "@johnmorrisdotca/chikyu-earth";
const none: RouteLeg | null = null;
console.log(none);null出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。