HereCityHit型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The city chosen for one here place.
インポート
import type { HereCityHit } from "@johnmorrisdotca/chikyu-earth/markers";
定義
interface HereCityHit {
index: number;
id: string;
label: string;
km: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
index | number | Where the place is in the list given. |
id | string | The city's id. |
label | string | The name to draw, in the page's language. |
km | number | The great-circle distance kuni reported, in kilometres. |
例
import type { HereCityHit } from "@johnmorrisdotca/chikyu-earth/markers";
const hit: HereCityHit = { index: 0, id: "Q90", label: "Paris", km: 2 };
console.log(hit.label);Paris出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。