@ideal-postcodes/address-finder
TypeScript icon, indicating that this package has built-in type declarations

5.1.3 • Public • Published

Ideal Postcodes Address Finder JavaScript Library

Find and autocomplete addresses with Address Finder

npm version

@ideal-postcodes/address-finder is a JavaScript library that delivers address autocomplete (or address typeahead) search functionality on a webpage.

This package should be consumed by a bundler or transpiler (e.g. webpack, parcel, rollup) for minification, module resolution and specific browser support.

For a pre-bundled version of address-finder (minified, transpiled, polyfilled, etc) that can immediately be dropped on a webpage, use address-finder-bundled.

Address Finder Demo

Links

Documentation

See our full documentation at docs.ideal-postcodes.co.uk

Quick Start

Install

Add address-finder to your project via npm

npm install @ideal-postcodes/address-finder

Instantiate

Instantiate Address Finder with AddressFinder.setup.

import { AddressFinder } from "@ideal-postcodes/address-finder";

const controller = AddressFinder.setup({
  apiKey: "ak_test", // API Key from your account
  // Target fields to send selected Address information
  // using CSS selectors
  outputFields: {
    line_1: "#line_1", // Address Finder will attach to line_1
    line_2: "#line_2",
    line_3: "#line_3",
    post_town: "#post_town",
    postcode: "#postcode",
  },
});

Licence

Copyright © IDDQD Limited

/@ideal-postcodes/address-finder/

    Package Sidebar

    Install

    npm i @ideal-postcodes/address-finder

    Weekly Downloads

    2,974

    Version

    5.1.3

    License

    SEE LICENSE IN LICENSE

    Unpacked Size

    238 kB

    Total Files

    48

    Last publish

    Collaborators

    • cablanchard