Reference · Markers on the globe
HereTowntype
A city from one country's file, including towns under 100,000.
Import it
import type { HereTown } from "@johnmorrisdotca/chikyu-earth/markers";
Definition
interface HereTown {
id: string;
name: {
en: string;
ja?: string;
jaShort?: string;
};
lat: number;
lon: number;
country?: string;
}
Members
| Name | Type | Description |
|---|---|---|
id | string | |
name | { en: string; ja?: string; jaShort?: string; } | |
lat | number | |
lon | number | |
country (optional) | string | undefined |
Examples
import type { HereTown } from "@johnmorrisdotca/chikyu-earth/markers";
const town: HereTown = { id: "ne:1", name: { en: "Smallville" }, lat: 1, lon: 2 };
console.log(town.name.en);SmallvilleWhat it prints (run when this page was built)