リファレンス · 都市の検索と読み込み(段階は必要なときに読み込まれ、サイズはすべての段階を含みます)
CityAt型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A city and how far it is from the point asked about.
インポート
import type { CityAt } from "@johnmorrisdotca/kuni/cities";
定義
interface CityAt {
city: City;
km: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
city | City | The city that was found. |
km | number | The great-circle distance to it, in kilometres, on a sphere of the earth's mean radius (6,371 km). |
例
import type { CityAt } from "@johnmorrisdotca/kuni/cities";
const value: CityAt | null = null;
console.log(value);null出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。