1.1.1 • Published 11 months ago

nuts-and-itl-lookup v1.1.1

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

nuts-and-itl-lookup

This package enables lookup of names by code under the NUTS and ITL geographical classification systems.

NUTS and ITL are hierarchical systems used to divide the territories of the EU and UK, respectively.

At present, ITL mirrors nuts, differing only in the first two letters of its codes i.e. TL vs UK. This is expected to last until at least 2024 so this package should be good for both til then. If anyone uses it, I'll keep my eye on developments and update it as needed.

How to use:

Install the package using:

npm i nuts-and-itl-lookup

Require the package in your project:

const nutsLookup = require('nuts-and-itl-lookup');

Syntax:

nutsLookup("AL033")

The function accepts one parameter: a NUTS or ITL geography code as a string, e.g.:

  • "AL033" - Expected result: { code: 'AL033', region: 'Gjirokastër' }

  • "be31" - Expected result: { code :'31', region: 'Prov. Brabant Wallon' }

  • "TLG21" - Expected result: { code: 'TLG21', region: 'Telford and Wrekin' }

It will work with either upper or lowercase letters.

1.1.1

11 months ago

1.1.0

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago