LatLontype
A point on the earth, in degrees: north and east are positive.
Import it
import type { LatLon } from "@johnmorrisdotca/kuni/facts";
Also exported from: @johnmorrisdotca/kuni/subdivision-facts
Definition
interface LatLon {
lat: number;
lon: number;
}
Members
| Name | Type | Description |
|---|---|---|
lat | number | Latitude in degrees, north positive: -90 to 90. |
lon | number | Longitude in degrees, east positive: -180 to 180. |
Examples
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' ]What it prints (run when this page was built)