@zhiweiliu/koordinates-stats-nz
v1.0.0
Published
Datasets of Stats New Zealand on Koordinates
Downloads
1
Maintainers
Readme
Koordinates - Stats New Zealand
The repository provides access to Stats New Zealand datasets hosted by Koordinates. It is built on module @zhiweiliu/koordiates-base. Please refer to the base module for more details.
Supported datasets
- Meshblock 2024
- Geographic Areas Table 2024
- Current Geographic Boundaries Table 2024
- New Zealand 2022 Estimated Resident Population Grid 250 metre, 2023
Example
// import Koordinates modules
import { KoordinatesDataset } from "@zhiweiliu/koordinates-base";
import { statsNzDatasets } from "@zhiweiliu/koordinates-stats-nz";
// Koordinates API key, it is recommended to load it at run time instead of hard-coding it in a file
import apiKey from "./api-key";
// Find dataset
let mb: KoordinatesDataset = statsNzDatasets.find(
(d) => d.getName() === "Meshblock 2024"
) as KoordinatesDataset;
// Invoke methods on the dataset object
let json = await mb.getLayerCapabilitiesJson(apiKey);
console.log(json);