1.0.9 • Published 4 months ago

@zhiweiliu/koordinates-linz v1.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

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);
1.0.9

4 months ago

1.0.8

4 months ago

1.0.7

4 months ago

1.0.6

4 months ago

1.0.5

4 months ago

1.0.4

4 months ago

1.0.3

4 months ago

1.0.2

4 months ago

1.0.0

5 months ago