Reference · The place under a point: country, sea, continent and the nearest city
PlaceNeartype
The nearest country when the point is outside every outline and within PLACE_COAST_KM of one.
The 1:110m line is not trusted that close to a coast, so this is not reported as country.
Import it
import type { PlaceNear } from "@johnmorrisdotca/chikyu-earth/place";
Definition
interface PlaceNear extends PlaceCountry {
distanceKm: number;
}
Members
| Name | Type | Description |
|---|---|---|
distanceKm | number | |
code | string | null | |
name | string | |
nameJa | string |
Examples
import type { PlaceNear } from "@johnmorrisdotca/chikyu-earth/place";
const off: PlaceNear = { code: "JP", name: "Japan", nameJa: "日本", distanceKm: 12 };
console.log(off.distanceKm);12What it prints (run when this page was built)