WORLD_GEOconstant
The world, every country a region, as longitude and latitude in degrees.
Import it
import { WORLD_GEO } from "@johnmorrisdotca/chizu/world-geo";
Definition
const WORLD_GEO: WorldGeo
Members
| Name | Type | Description |
|---|---|---|
type | "FeatureCollection" | |
features | { type: "Feature"; properties: { code: string; name: string; nameJa: string; iso3: string; group: string; groupJa?: string; }; geometry: { type: string; coordinates: unknown; }; }[] | |
source | string |
Examples
import WORLD_GEO from "@johnmorrisdotca/chizu/world-geo";
const japan = WORLD_GEO.features.find((feature) => feature.properties.code === "JP")!;
console.log(WORLD_GEO.features.length, japan.properties.code, japan.properties.name, japan.properties.nameJa);
// 177 JP Japan 日本177 JP Japan 日本What it prints (run when this page was built)