0.1.5 • Published 8 months ago

zip-code-luxembourg v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Zip Code Info

A simple npm package to retrieve zip code information for Luxembourg without external dependencies.

Installation

To install this package, you can use npm or yarn:

npm install zip-code-luxembourg

Usage

Get postal information (district, canton, municipality, city, street) linked to a zip code.

const {getInfos} = require('zip-code-luxembourg');
const result = getInfos({zipCode:'1234'});
console.log(result);

Output

[
  {
    district: 'LUXEMBOURG',
    canton: 'LUXEMBOURG-VILLE',
    municipality: 'Luxembourg',
    city: 'Luxembourg',
    street: 'Rue Marguerite-Séraphine Beving',
    zipCode: '1234'
  }
]

Alternative usage

You can filter by any postal information (district, canton, municipality, city, street, zip code) For example if you want to get all the streets of one city:

const {getInfos} = require('zip-code-luxembourg');
const result = getInfos({city:'Belvaux'}).map((item) => item.street);
console.log(result);

Output

 [
      'Avenue du Blues',
      'Avenue du Swing',
      'Avenue Michel Majerus',
      'Belval-Rédange-Halte',
      ...
]

Data source

Our npm package leverages data from the Registre national des localités et des rues dataset issued by Administration du cadastre et de la topographie, a comprehensive source of information on cities, streets, and postal codes in Luxembourg The data is converted to json with /lib/convert-csv-to-json.js This package will be updated along the source dataset.

License

This package is distributed under the MIT License. See the LICENSE file for details.

0.1.5

8 months ago

0.1.4

8 months ago

0.1.3

8 months ago

0.1.2

8 months ago

0.1.1

8 months ago

0.0.8

8 months ago

0.0.7

8 months ago

0.0.6

8 months ago

0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago