AddressFinder

The best way to find exact addresses in Australia

  • Skip to Main Navigation
  • Skip to Footer Sitemap
  • Skip to Top

Menu

Get Started Free

  • Pricing
  • Features & plugins
  • About us
  • Case studies
  • FAQ
  • Contact
  • Blog
  • JavaScript widget docs
  • API developer docs
  • Log in
  • Pricing
  • Features
  • More
    • Company & product
      • About Us
      • Case Studies
      • FAQ
      • Partners
      • Blog
      Contact Us
    • Plugins
      • Magento
      • WooCommerce
      • BigCommerce
      • Salesforce
      • Shopify
      • iOS
    • JavaScript widget docs
      • Integration Guide
      • Widget Code Generator
      • Code Examples
      • Widget Reference
      See all JavaScript docs
    • API developer docs
      • Address Autocomplete
      • Address Metadata
      • Address Verification
      See all API docs
  • Log in
  • Get Started Free

Code examples

These examples are aimed at developers wanting to see how to configure the JavaScript Widget.

Hello World

This is the simplest example, and shows the JavaScript required to convert a plain input field into an autocomplete AddressFinder field.

JS Example jQuery Version

Registration / Checkout Form

Shows how to integrate AddressFinder into a simple registration or checkout form. Uses a JavaScript event handler to populate individual form fields such as "locality", "state", "postcode", etc. Also, watch the Integration Guide video.

JS Example jQuery Version

Registration / Checkout Form with hidden fields

This second registration form example shows a single line address form, where the results are captured within hidden fields. This is a good demonstration of some of the Best Practice Guidelines.

JS Example jQuery Version

Event Listeners

The AddressFinder plugin fires a number of events that you can use to provide advanced functionality. This example demonstrates how to consume the result:select event, and displays a popup showing the address that the user selected. More information about using event listeners is available in the Advanced Usage selection of the documentation.

JS Example

Custom Styles

It is possible to change the default styles that AddressFinder uses. This example demonstrates altering the size and colours of the addresses that get displayed by AddressFinder. More information about using your own styles is available in the Advanced Usage selection of the documentation.

JS Example

Use with a scrolling panel

If you have a fixed panel with scrolling within your webpage, you may have issues with the positioning of the popup autocomplete window. If so, this example will show you have to adjust the widget to render the popup using the container option.

JS Example

Third Party data

AddressFinder allows developers to include their own data sets with the standard addresses and locations that our API returns. You example, you may choose to include some of your own branches in the list of results that are displayed. More information about using your own data is available in the Advanced Usage selection of the documentation.

This example demonstrates the inclusion of a some additional address in the results.

JS Example

Multiple AddressFinder widgets on a single page

You can include any number of AddressFinder widgets on a single web page. For example, you may wish to capture a delivery address and billing address separately. You can use different criteria for each widget.

This example demonstrates capturing a first address and a second address using two widgets on the same page.

JS Example

Disable and re-enable the widget

Sometimes you want to disable the AddressFinder widget - for example, perhaps you want the user to enter their address in a manual mode. This example demonstrates calling the disable() and enable() methods to turn the AddressFinder widget on and off.

JS Example

Location and Address Search
Using the AddressFinder Widget you can search for both addresses and locations (streets, suburbs, cities and states). This example demonstrates how the widget can be configured to include locations in the search results.

JS Example

Multiple countries in one form
Create a widget per country (AU & NZ), and dynamically enable the appropriate widget based on the selected country.

JS Example

Further examples

We also have some more detailed examples.

  • JavaScript Widget
    • Integration guide
    • Widget code generator
    • Code examples
    • Best practices
    • Fixing browser quirks
    • Advanced usage
    • JavaScript widget reference
  • API Specs (AU)
    • Address Autocomplete
    • Address Metadata
    • Address Verification
    • Location Autocomplete
    • Location Metadata
  • API Specs (NZ)
  • Integrations
    • Magento
    • WooCommerce
    • BigCommerce
    • Salesforce
    • Shopify
    • Spiffy Stores
    • Ruby
    • iOS

Sitemap

Home

  • About
  • Contact
  • Blog
  • FAQ
  • Pricing
  • Case Studies
  • Status Page
  • Privacy Policy
  • Terms & Conditions

Features

  • Australian Address Autocomplete
  • Australian Address Verification
  • Australian Address Metadata
  • Geocode Australian Addresses
  • Street, Suburb & City Search
  • Customer Portal

Plugins

  • WooCommerce
  • BigCommerce
  • Shopify
  • Magento
  • Salesforce
  • Spiffy Stores
  • iOS
  • Ruby

API Documentation

  • Address Autocomplete
  • Address Metadata
  • Address Verification
  • API Errors
  • Another 2 APIs
  • NZ API specs

Widget Documentation

  • Integration Guide
  • Code Generator
  • Code Examples
  • Javascript Reference

Get Started Free

AddressFinder is also available in New Zealand