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 · 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

NameTypeDescription
msnumber
latnumber

Degrees north.

lonnumber

Degrees east, -180 to 180.

altitudeKmnumber

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);
function

What it prints (run when this page was built)

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