Reference · The place under a point: country, sea, continent and the nearest city
PlaceCountrytype
A country from the outlines. code is the ISO 3166-1 alpha-2 code, or null where the outline has none.
Import it
import type { PlaceCountry } from "@johnmorrisdotca/chikyu-earth/place";
Definition
interface PlaceCountry {
code: string | null;
name: string;
nameJa: string;
}
Members
| Name | Type | Description |
|---|---|---|
code | string | null | |
name | string | |
nameJa | string |
Examples
import type { PlaceCountry } from "@johnmorrisdotca/chikyu-earth/place";
const japan: PlaceCountry = { code: "JP", name: "Japan", nameJa: "日本" };
console.log(japan.code);JPWhat it prints (run when this page was built)