Reference · The place under a point: country, sea, continent and the nearest city
TrackPlacetype
The place a ground track is in at one sample: a country, a country it is only near, or a sea or ocean.
Import it
import type { TrackPlace } from "@johnmorrisdotca/chikyu-earth/place";
Definition
interface TrackPlace {
kind: "country" | "near" | "sea";
id: string;
name: string;
nameJa: string;
}
Members
| Name | Type | Description |
|---|---|---|
kind | "sea" | "country" | "near" | |
id | string | |
name | string | |
nameJa | string |
Examples
import type { TrackPlace } from "@johnmorrisdotca/chikyu-earth/place";
const france: TrackPlace = { kind: "country", id: "FR", name: "France", nameJa: "フランス" };
console.log(france.kind);countryWhat it prints (run when this page was built)