HARBOURSconstant
Natural Earth's 1,081 ports, largest first, each with a tier: 1 for its sizes 3 and 4, 2 for 5, 3 for the rest.
Import it
import { HARBOURS } from "@johnmorrisdotca/chizu/harbours";
Definition
const HARBOURS: readonly ChizuPort[] = data
Examples
import { HARBOURS } from "@johnmorrisdotca/chizu/harbours";
const yokohama = HARBOURS.find((harbour) => harbour.id === "yokohama")!;
console.log(HARBOURS.length, yokohama.name.ja, yokohama.country);
// 1081 横浜港 JP1081 横浜港 JPWhat it prints (run when this page was built)