Capitaltype
A capital city: its name, as the sheet says it in each language, and where it is.
Import it
import type { Capital } from "@johnmorrisdotca/chikyu-earth/sheets";
Definition
interface Capital {
name: string;
ja?: string;
lon: number;
lat: number;
}
Members
| Name | Type | Description |
|---|---|---|
name | string | |
ja (optional) | string | undefined | The Japanese name, when it has one. |
lon | number | |
lat | number |
Examples
import { type Capital } from "@johnmorrisdotca/chikyu-earth/sheets";
const tokyo: Capital = { name: "Tokyo", ja: "東京", lon: 139.69, lat: 35.69 };
console.log(tokyo.name);TokyoWhat it prints (run when this page was built)