Reference · Facts, line drawings and positions
JourneyStoptype
One body, with what a trip needs. gmKm3s2, massKg and escapeKmS are empty together when no page read here gives a mass.
Import it
import type { JourneyStop } from "@johnmorrisdotca/wakusei-planets";
Definition
interface JourneyStop {
id: BodyId;
kind: BodyFacts["kind"];
parent?: HostId;
name: {
en: string;
ja: string;
};
radiusKm: number;
sunAu: number;
gmKm3s2: number | null;
massKg: number | null;
escapeKmS: number | null;
}
Members
| Name | Type | Description |
|---|---|---|
id | BodyId | |
kind | "moon" | "star" | "planet" | "dwarf-planet" | |
parent (optional) | HostId | undefined | The body a moon goes round. |
name | { en: string; ja: string; } | |
radiusKm | number | Equatorial radius in kilometres, the same number as |
sunAu | number | Mean distance from the Sun in astronomical units. |
gmKm3s2 | number | null | Gravitational parameter, km^3/s^2. Empty when no cited page gives it. |
massKg | number | null | Mass in kilograms, GM / G with CODATA 2018 G. Empty when GM is empty. |
escapeKmS | number | null | Escape speed in km/s: the published figure, or |
Examples
import { journeyStop, type JourneyStop } from "@johnmorrisdotca/wakusei-planets";
const earth: JourneyStop = journeyStop("earth");
console.log(earth.sunAu.toFixed(3), earth.escapeKmS);1.000 11.19What it prints (run when this page was built)