PlaceNear型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 type { PlaceNear } from "@johnmorrisdotca/chikyu-earth/place";
定義
interface PlaceNear extends PlaceCountry {
distanceKm: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
distanceKm | number | |
code | string | null | |
name | string | |
nameJa | string |
例
import type { PlaceNear } from "@johnmorrisdotca/chikyu-earth/place";
const off: PlaceNear = { code: "JP", name: "Japan", nameJa: "日本", distanceKm: 12 };
console.log(off.distanceKm);12出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。