JSPM

addressless

0.0.3
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 4
    • Score
      100M100P100Q28683F
    • License MIT

    A library for Dutch address lookups

    Package Exports

    • addressless
    • addressless/dist/index.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (addressless) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    README

    In the Netherlands, every address is uniquely identified by postcode and housenumber. This library wraps a database with all addresses in the Netherlands, allowing you to quickly revolve the address details for postcode and housenumber combinations.

    Usage

    import { lookupAddress } from "addressless";
    
    const address = lookupAddress("4147AZ", "5");
    // {
    //   "city": "Asperen",
    //   "district": "Asperen",
    //   "houseNumber": "5",
    //   "latitude": 51.88051803,
    //   "longitude": 5.11206571,
    //   "municipality": "West Betuwe",
    //   "neighbourhood": "Asperen Oude Kern",
    //   "postcode": "4147AZ",
    //   "province": "Gelderland",
    //   "street": "Stadswal",
    // }

    Source

    The data in this project is based on this repository. I might at some point set up a mechanism to start tailing changes in that repository and create releases automatically. This version is however based on this revision.