Reference · Satellites: orbital elements in, positions out
NearestOptionstype
What nearest may be asked. date is required.
Import it
import type { NearestOptions } from "@johnmorrisdotca/chikyu-earth/satellites";
Definition
interface NearestOptions {
count?: number;
within?: number;
by?: "sky" | "space";
date: number;
observer?: GeoPoint & {
heightM?: number;
};
}
Members
| Name | Type | Description |
|---|---|---|
count (optional) | number | undefined | How many to return, nearest first. |
within (optional) | number | undefined | Drop anything further than this: kilometres for |
by (optional) | "space" | "sky" | undefined |
|
date | number | The moment, milliseconds since the Unix epoch. |
observer (optional) | (GeoPoint & { heightM?: number; }) | undefined | Where the sky is seen from, when the target is a satellite and |
Examples
import type { NearestOptions } from "@johnmorrisdotca/chikyu-earth/satellites";
const options: NearestOptions = { date: Date.UTC(2026, 10, 2), by: "space", count: 5 };
console.log(options.by);spaceWhat it prints (run when this page was built)