Reference · Passes: when a satellite crosses the sky over a place
GroundPointtype
One point of a satellite's ground track: the place on the Earth straight under it.
Import it
import type { GroundPoint } from "@johnmorrisdotca/chikyu-earth/passes";
Definition
interface GroundPoint {
ms: number;
lat: number;
lon: number;
altitudeKm: number;
}
Members
| Name | Type | Description |
|---|---|---|
ms | number | |
lat | number | Degrees north. |
lon | number | Degrees east, -180 to 180. |
altitudeKm | number | Height above the Earth's surface, kilometres. |
Examples
import type { GroundPoint } from "@johnmorrisdotca/chikyu-earth/passes";
const north = (points: readonly GroundPoint[]): boolean => points.every((point) => point.lat > 0);
console.log(typeof north);functionWhat it prints (run when this page was built)