Reference · Satellites: orbital elements in, positions out
ElementSourcetype
Element sets read from a source: where from, when, and whether this answer was kept from earlier rather than asked for now.
Import it
import type { ElementSource } from "@johnmorrisdotca/chikyu-earth/satellites";
Definition
interface ElementSource extends ParsedElements {
url: string;
retrievedAt: number;
fromCache: boolean;
}
Members
| Name | Type | Description |
|---|---|---|
url | string | |
retrievedAt | number | When the source was asked, in milliseconds since the Unix epoch. |
fromCache | boolean | |
format | ElementFormat | |
sets | ElementSet[] | |
skipped | { name: string; reason: string; }[] |
Examples
import type { ElementSource } from "@johnmorrisdotca/chikyu-earth/satellites";
const describe = (source: ElementSource): string => `${source.sets.length} from ${source.url}, ${source.fromCache ? "kept" : "new"}`;
console.log(typeof describe);functionWhat it prints (run when this page was built)