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 realistic Earth's pure parts

NamedCitytype

What the layer needs of a city: kuni's own record has more, and any list with these fields will do.

Import it

import type { NamedCity } from "@johnmorrisdotca/chikyu-earth/realistic";

Definition

interface NamedCity {
    id: string;
    name: {
        en: string;
        ja?: string;
        jaShort?: string;
    };
    lat: number;
    lon: number;
    population: number | null;
    capital: "national" | "alternate" | "subdivision" | null;
}

Members

NameTypeDescription
idstring
name{ en: string; ja?: string; jaShort?: string; }
latnumber
lonnumber
populationnumber | null
capital"national" | "alternate" | "subdivision" | null

Examples

import type { NamedCity } from "@johnmorrisdotca/chikyu-earth/realistic";

const osaka: NamedCity = { id: "Q35765", name: { en: "Osaka", ja: "大阪市" }, lat: 34.69, lon: 135.5, population: 2_700_000, capital: null };
console.log(osaka.name.en);
Osaka

What it prints (run when this page was built)

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