Reference · Markers on the globe
HereCityHittype
The city chosen for one here place.
Import it
import type { HereCityHit } from "@johnmorrisdotca/chikyu-earth/markers";
Definition
interface HereCityHit {
index: number;
id: string;
label: string;
km: number;
}
Members
| Name | Type | Description |
|---|---|---|
index | number | Where the place is in the list given. |
id | string | The city's id. |
label | string | The name to draw, in the page's language. |
km | number | The great-circle distance kuni reported, in kilometres. |
Examples
import type { HereCityHit } from "@johnmorrisdotca/chikyu-earth/markers";
const hit: HereCityHit = { index: 0, id: "Q90", label: "Paris", km: 2 };
console.log(hit.label);ParisWhat it prints (run when this page was built)