Reference
Places: countries of a continent, and search (the size counts every tier)
import { … } from "@johnmorrisdotca/kuni/places";
3329.5 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
CityName | type | A city in a country's light list (@johnmorrisdotca/kuni/cities/names-<code>): its id and names only, for a picker to show before it fetches the rest, and whether it is one of the country's major cities (its capital, or one of its first twenty, ranked by the urban area each heads). |
cityNamesOf | function | A country's cities, ids and names only: the light list a picker shows first (a third to a half of the country's full file), in the order of citiesOf, each with major for the country's capital and its first twenty cities. |
continents | function | The seven continents, from kuni's groupings, in the groupings' order: the first choice of a place chooser. |
countriesOf | function | The countries of a continent, from kuni's groupings (the seven continents), in alpha-2 order. |
PlaceContinent | type | A continent as the groupings name it. |
PlaceHit | type | One result of searchPlaces: a country, or a city. |
searchPlaces | function | What a person typed, found among countries and cities, best first. |
SearchPlacesOptions | type | What searchPlaces may be asked. |