本文へ移動

Chikyu Earth地球

世界の国の輪郭を線で描いた地球儀です。地球と同じ速さで回ります。宇宙から見たような地球と、好きな場所の目印も使えます。

「地球」(ちきゅう) は、私たちが住む星の名前です。 名前について(英語)

目次

リファレンス · SVG文字列としての地球儀

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;
}

メンバー

名前型説明
kilometresnumber

Geodesic distance on WGS84, kilometres. The great-circle distance when the geodesic did not converge.

greatCircleKmnumber

Great-circle distance on a sphere of MEAN_RADIUS_KM, kilometres.

initialBearingnumber

Degrees clockwise from north, 0 to 360, at the start.

finalBearingnumber

Degrees clockwise from north, 0 to 360, at the end.

flightHoursnumber

Hours at FLIGHT_SPEED_KM_H.

midpointGeoPoint

The point halfway along the geodesic (or the great circle, when the geodesic did not converge).

exactboolean

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

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/chikyu-earth 0.51.1 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。