@zhiweiliu/koordinates-linz
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

Koordinates - Land Information New Zealand (LINZ)

The repository provides access to LINZ datasets hosted by Koordinates. It is built on module @zhiweiliu/koordiates-base. Please refer to the base module for more details.

Supported datasets

  • NZ Addresses
  • NZ 8m Digital Elevation Model (2012)
  • NZ Parcels

Example

// import Koordinates modules
import { KoordinatesDataset } from "@zhiweiliu/koordinates-base";
import { LinzDatasets } from "@zhiweiliu/koordinates-linz";

// 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 nza: KoordinatesDataset = LinzDatasets.find(
  (d) => d.getName() === "NZ Addresses"
) as KoordinatesDataset;

// Invoke methods on the dataset object
let json = await nza.getLayerCapabilitiesJson(apiKey);
console.log(json);

Readme

Keywords

Package Sidebar

Install

npm i @zhiweiliu/koordinates-linz

Weekly Downloads

0

Version

1.0.9

License

ISC

Unpacked Size

45.5 kB

Total Files

9

Last publish

Collaborators

  • zhiweiliu