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 · The place under a point: country, sea, continent and the nearest city

PlaceNeartype

The nearest country when the point is outside every outline and within PLACE_COAST_KM of one. The 1:110m line is not trusted that close to a coast, so this is not reported as country.

Import it

import type { PlaceNear } from "@johnmorrisdotca/chikyu-earth/place";

Definition

interface PlaceNear extends PlaceCountry {
    distanceKm: number;
}

Members

NameTypeDescription
distanceKmnumber
codestring | null
namestring
nameJastring

Examples

import type { PlaceNear } from "@johnmorrisdotca/chikyu-earth/place";

const off: PlaceNear = { code: "JP", name: "Japan", nameJa: "日本", distanceKm: 12 };
console.log(off.distanceKm);
12

What it prints (run when this page was built)

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