Reference · The place under a point: country, sea, continent and the nearest city
PlaceNametype
A named place: an id, and the English and Japanese names.
Import it
import type { PlaceName } from "@johnmorrisdotca/chikyu-earth/place";
Definition
interface PlaceName {
id: string;
name: string;
nameJa: string;
}
Members
| Name | Type | Description |
|---|---|---|
id | string | |
name | string | |
nameJa | string |
Examples
import type { PlaceName } from "@johnmorrisdotca/chikyu-earth/place";
const pacific: PlaceName = { id: "pacific-ocean", name: "Pacific Ocean", nameJa: "太平洋" };
console.log(pacific.name);Pacific OceanWhat it prints (run when this page was built)