本文へ移動

Kuni国

国、コード、名前、行政区画を調べ、必要なときに国のデータを読み込み、標準の国のカードを表示できます。

「国(くに)」は、国を表す日本語です。 名前について(英語)

目次

リファレンス

人口100万人以上の都市(首都を含む)

import { … } from "@johnmorrisdotca/kuni/cities/1m";

最小化と gzip 圧縮をしたサイズは 34.2 kB(読み込むものをすべて含み、esbuild で計測)

リファレンスの説明と例は英語です。見出しと目次は日本語です。

エクスポート

名前種類概要
CITIES_READ定数The day the Wikidata snapshot of the cities was read: every name and figure in the cities is as Wikidata gave it on this day (Natural Earth's, 5.1.2, are as that release has them).
cities1m関数The cities of the tier 1m: the cities of a million people or more (capitals too).
City型One city, as every tier hands it out (frozen): plain numbers and codes, null where no source has the fact.

ソースを見るGitHub で編集@johnmorrisdotca/kuni 1.19.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。