Skip to the content

Chikyu Earth地球

A line-drawn globe of the world's countries that turns at the Earth's own rate, with an optional realistic Earth from space and markers for any place.

Chikyu is the Japanese word 地球 for the Earth. About the name

Contents

Reference · Satellites: orbital elements in, positions out

nearestfunction

The satellites nearest a place, a direction in the sky, or another satellite, at one moment. One SGP4 call (exact) for each satellite that can be placed. It does not run again by itself. by: "space" answers with kilometres; by: "sky" with the angle in degrees. Nearest first.

Import it

import { nearest } from "@johnmorrisdotca/chikyu-earth/satellites";

Definition

function nearest(group: Satellites, target: NearestTarget, options: NearestOptions): Neighbour[]

Parameters

NameTypeDescription
groupSatellites

The satellites, from createSatellites.

targetNearestTarget

A place, a direction (azimuth, elevation, observer), or { satellite: index }.

optionsNearestOptions

date (required), count (5), within, by ("space"), and observer for a satellite seen in the sky.

Returns

Neighbour[]

The neighbours, nearest first.

Examples

import { createSatellites, nearest } from "@johnmorrisdotca/chikyu-earth/satellites";

const group = createSatellites([]);
console.log(nearest(group, { place: { lon: 0, lat: 0 } }, { date: Date.UTC(2026, 10, 2) }).length);
0

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/chikyu-earth 0.51.1.