SkyNeighbourtype
A body near the target in the sky: its angle from the target in degrees (0 to 180) and how far that angle may be off, in arc-seconds.
Import it
import type { SkyNeighbour } from "@johnmorrisdotca/wakusei-planets/nearest";
Definition
interface SkyNeighbour {
id: BodyId;
kind: NearestKind;
angle: number;
uncertaintyArcseconds: number;
}
Members
| Name | Type | Description |
|---|---|---|
id | BodyId | |
kind | "moon" | "star" | "planet" | "dwarf-planet" | |
angle | number | The angle between the target and this body in the observer's sky, degrees. |
uncertaintyArcseconds | number | The accuracy to expect of |
Examples
import { nearest, type SkyNeighbour } from "@johnmorrisdotca/wakusei-planets/nearest";
const next: SkyNeighbour | undefined = nearest("moon", { count: 1, date: Date.UTC(2026, 10, 8) })[0];
console.log(next?.id, next?.angle.toFixed(1));venus 7.2What it prints (run when this page was built)