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

withinfunction

Every satellite within radius of a target, nearest first. Kilometres for by: "space", degrees for by: "sky". The same one pass as nearest.

Import it

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

Definition

function within(group: Satellites, target: NearestTarget, radius: number, options: Omit<NearestOptions, "count" | "within">): Neighbour[]

Parameters

NameTypeDescription
groupSatellites

The satellites.

targetNearestTarget

A place, a direction, or a satellite.

radiusnumber

The limit, in the unit by uses.

optionsOmit<NearestOptions, "count" | "within">

As nearest, without count and within.

Returns

Neighbour[]

The neighbours inside the limit.

Examples

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

const group = createSatellites([]);
console.log(within(group, { place: { lon: 0, lat: 0 } }, 1000, { 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.