LatLon型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A point on the earth, in degrees: north and east are positive.
インポート
import type { LatLon } from "@johnmorrisdotca/kuni/facts";
ほかのエクスポート元: @johnmorrisdotca/kuni/subdivision-facts
定義
interface LatLon {
lat: number;
lon: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
lat | number | Latitude in degrees, north positive: -90 to 90. |
lon | number | Longitude in degrees, east positive: -180 to 180. |
例
import type { LatLon } from "@johnmorrisdotca/kuni/facts";
const value: LatLon = {lat:35.68,lon:139.76};
console.log(typeof value === "object" ? Object.keys(value).slice(0,6) : value);[ 'lat', 'lon' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。