Reference
Subdivision facts
import { … } from "@johnmorrisdotca/kuni/subdivision-facts";
160.6 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
LatLon | type | A point on the earth, in degrees: north and east are positive. |
loadSubdivisionFacts | function | The facts about one country's subdivisions, every level, in code order: one object for each subdivision, with null for anything Wikidata does not give or gives two ways (docs/subdivision-facts.md counts them). |
SubdivisionFacts | type | The facts about one subdivision, from the /subdivision-facts entry: null where Wikidata has none, or gives two. |