Reference · Cities: lookups and loading (the tiers load on demand; the size counts every tier)
CityAttype
A city and how far it is from the point asked about.
Import it
import type { CityAt } from "@johnmorrisdotca/kuni/cities";
Definition
interface CityAt {
city: City;
km: number;
}
Members
| Name | Type | Description |
|---|---|---|
city | City | The city that was found. |
km | number | The great-circle distance to it, in kilometres, on a sphere of the earth's mean radius (6,371 km). |
Examples
import type { CityAt } from "@johnmorrisdotca/kuni/cities";
const value: CityAt | null = null;
console.log(value);nullWhat it prints (run when this page was built)