Addressfinder

The best way to find exact addresses in New Zealand

  • Skip to Main Navigation
  • Skip to Footer Sitemap
  • Skip to Top
  • About
    • About Us
    • Case Studies
    • FAQ
    • Partners
    • Blog
    • Contact Us
  • Pricing
  • Industries
    • E-commerce
      Collect verified delivery addresses
    • Finance
      Verified address data for KYC and AML
    • Utilities
      Make network connections faster
  • Features
    • Autocomplete
      Search addresses and locations as you type
    • Bulk Cleansing
      Verify a database of addresses
    • Email Verification
      Collect only valid email addresses
    • Geocode Addresses
      Collect addresses and GPS coordinates together
    • Address Metadata
      Get extra data about addresses
    • MORE FEATURES
  • Address Verification
    • Integration Guide
    • Code Examples
    • API Reference
    • Code Generator
    • Javascript Reference
    • International Integration
  • Email Verification
    • Integration Guide
    • Code Examples
    • API Reference
  • About
    • About us
    • Case Studies
    • Frequently Asked Questions
    • Partners
    • Blog
    • Contact Us
  • Pricing
  • Industries
    • E-commerce
      Collect verified delivery addresses
    • Finance
      Verified address data for KYC and AML
    • Utilities
      Make network connections faster
  • Features
    • Autocomplete
      Search addresses and locations as you type
    • Bulk Cleansing
      Verify a database of addresses
    • Email Verification
      Collect only valid email addresses
    • Geocode Addresses
      Collect addresses and GPS coordinates together
    • Address Metadata
      Get extra data about addresses
    • MORE FEATURES
  • Documentation
    • Integrations
      • Magento
      • WooCommerce
      • Hubspot
      • Salesforce
      • Shopify Plus
      See all integrations
    • Address Verification
      • Integration Guide
      • Code Examples
      • API Reference
      • Code Generator
      • Javascript Reference
      • International Integration
    • Email Verification
      • Integration Guide
      • Code Examples
      • API Reference
  • Login

Code examples

In this page

  • Address widget for Javascript libraries
  • Custom address widget examples
  • Custom Email widget examples
  • Other code examples

Address widget for Javascript libraries

Make use of a variety of popular libraries to integrate Addressfinder into your form/page.

  • js
  • jquery
  • react
  • angular
  • vue

Custom address widget examples

  1. Urban address search only - The example demonstrates the widget being filtered to return only urban addresses. Rural addresses are being excluded from the search results.
    #Restrict #Urban

  2. Physical address search (no PO boxes) - The example demonstrates the widget being filtered to return only physical addresses. PO box and Private Bag address types are excluded from the search results.
    #PO Box #Restrict

  3. Capturing Address Metadata - Demonstrates capturing several of our metadata attributes, and saving them into hidden fields on a form. In this example, we capture GPS coordinates, the meshblock ID, the NZ Post DPID field and also the name of the region. The example of the AddressFinder widget showcases some of the extra data that can be collected along side each Address. The addresses GPS location, meshblock ID and DPID are all collected in this example.
    #DPID #GPS #Meshblock #Metadata #Region

  4. Custom styling: Fixed width adjustment - The example of the Addressfinder widget has the manual styling feature turned on. This enables the styling to be set by the customer rather than using the default style. When you make a search, the address results in this example will span to the width of the input element instead of the variable width option the widget usually returns.
    #Styling #User Interface

  5. Smart Billing and Shipping Checkout Form - The example shows how Addressfinder can be used in a smart way within an address collecting form. By toggling the 'Ship to my billing address' button a user can specify a separate shipping address (no PO Box type addresses) to their billing address (address delivered to by New Zealand Post).
    #Multiple Widgets #PO Box #Shipping

  6. Multiple country address form - The code demonstrates the searching of an address from either AU or NZ. It then the populates the address info into the address fields. The country select box is used to determine which address database is searched.
    #Multiple Countries #Multiple Widgets

  7. Restriction by Geofence - The code produces a pop-up which notifies the user whether or not they are in the designated location.
    #Geofence #Logic #Restrict

  8. International Address Autocomplete - Demonstrates how to use the widget to search for addresses within 15 different countries.
    #International #Multiple Countries

  9. Open Street Maps Address Geocoding with SA1 - The example shows how you can capture Addressfinder data and populate it on Open Street Maps while also obtaining SA1 metadata. It functions for both AU and NZ.
    #GPS #Maps #Multiple Countries #Multiple Widgets #Open Street Map

  10. Form without address line 2 - The example shows the basic use case of the AddressFinder widget but on a form that has fewer address fields. This form only has one "address line" so the widget has been modified to combine the 'Address_Line_1' and 'Address_Line_2' elements when populating the content into the appropriate field.
    #DOM #Logic #Split Fields #Street

Custom Email widget examples

  1. Allow all emails - With this, you will not block any email from being submitted, but you will have the ability to ask your customers to add a better email address if possible. The message is optional and a nicely worded default will be provided if omitted.
    #Email

  2. Strict blocking - With this, you will block all addresses apart from valid, corporate email addresses.
    #Email

  3. Verify email and address autocomplete (NZ) - This form demonstrates the verification of an email field, as well as the address autocomplete widget being used on the same form.
    #Email #Multiple Widgets #Split Fields

Other code examples

DOM DPID Email Empty Content Error Message GPS Geofence Hubspot International Location Logic Manual Maps Meshblock Metadata Multiple Countries Multiple Widgets Nearby Open Street Map PO Box Parcel ID Points of Interest Proxy Region Restrict Rural Shipping Split Fields State Street Styling Suburb Survey Urban User Interface
  • Address Verification Widget
    • Integration guide
    • Widget code generator
    • Code examples
    • Best practices
    • Fixing browser quirks
    • Advanced usage
    • Can't find your address?
    • JavaScript widget reference
  • Email Verification
    • Email Verification API
    • Widget integration guide
    • Widget advanced usage
  • API Documentation (NZ)
    • Address Autocomplete
    • Address Metadata
    • Address Verification
    • Address Reverse Geocode
    • Location Autocomplete
    • Location Metadata
    • Points of Interest Autocomplete
    • Points of Interest Metadata
    • API Errors
  • API Documentation (AU)
    • Address Autocomplete
    • Address Metadata
    • Address Verification
    • Location Autocomplete
    • Location Metadata
    • API Errors
  • API Documentation (INT'L)
    • Address Autocomplete
    • Address Metadata
  • Integrations
    • Magento
    • WooCommerce
    • BigCommerce
    • Salesforce
    • Shopify Plus
    • Hubspot
    • StoreConnect
    • Spiffy Stores
    • Ruby
    • iOS
    • Drupal
    • Microsoft Dynamics 365
    • Vue
    • Gravity Forms
    • React
Addressfinder logo
Addressfinder provides speedy, accurate and dependable address autocompletion at a fair price. Easily integrate our address finder software with your site to start enjoying our address verification, address autocomplete and other address services today.

Sitemap

  • About
  • About Us
  • Contact
  • Blog
  • FAQ
  • Pricing
  • Case Studies
  • Status Page
  • Privacy Policy
  • Terms & Conditions
  • Features
  • Address Autocomplete
  • Address Metadata
  • Bulk Address Cleansing
  • Address Geocoding
  • Email Address Verification
  • Reverse Address Lookup
  • Points of Interest
  • Street, Suburb & City Search
  • Postcode Finder
  • Address Verification
  • Integrations
  • WooCommerce
  • BigCommerce
  • Shopify Plus
  • Magento
  • Salesforce
  • Spiffy Stores
  • iOS
  • Ruby
  • HubSpot
  • StoreConnect
  • Drupal
  • Microsoft Dynamics 365
  • Vue
  • Gravity Forms
  • React
  • API Documentation
  • Address Autocomplete
  • Address Metadata
  • Address Verification
  • Email Verification
  • API Errors
  • AU APIs specs
  • International APIs
  • Widget Documentation
  • Integration Guide
  • Code Generator
  • Code Examples
  • Javascript Reference
  • International Integration Guide
  • Email Integration Guide
Addressfinder is also available in Australia
Terms and Conditions | Privacy
Copyright © 2023 Addressfinder, New Zealand