Skip to the content

Kuni国

Look up countries, codes, names and subdivisions, load country data on demand and mount a native country card.

Kuni (国) is Japanese for a country. About the name

Contents

Reference · Country facts

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

NameTypeDescription
latnumber

Latitude in degrees, north positive: -90 to 90.

lonnumber

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)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kuni 1.4.0.