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

NearestTargettype

A place on the ground, a direction in the sky from an observer, or another satellite of the same group.

Import it

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

Definition

type NearestTarget = {
    place: GeoPoint;
    heightM?: number;
} | {
    azimuth: number;
    elevation: number;
    observer: GeoPoint & {
        heightM?: number;
    };
} | {
    satellite: number;
};

Examples

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

const target: NearestTarget = { place: { lon: -0.13, lat: 51.51 } };
console.log("place" in target);
true

What it prints (run when this page was built)

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