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 · Markers on the globe

HereTowntype

A city from one country's file, including towns under 100,000.

Import it

import type { HereTown } from "@johnmorrisdotca/chikyu-earth/markers";

Definition

interface HereTown {
    id: string;
    name: {
        en: string;
        ja?: string;
        jaShort?: string;
    };
    lat: number;
    lon: number;
    country?: string;
}

Members

NameTypeDescription
idstring
name{ en: string; ja?: string; jaShort?: string; }
latnumber
lonnumber
country (optional)string | undefined

Examples

import type { HereTown } from "@johnmorrisdotca/chikyu-earth/markers";

const town: HereTown = { id: "ne:1", name: { en: "Smallville" }, lat: 1, lon: 2 };
console.log(town.name.en);
Smallville

What it prints (run when this page was built)

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