Skip to main content

Integration methods

There are several methods for integrating Address Capture:
  • Tag: insert automatically-generated code snippets into your website to add Address Capture to your online forms
  • Pre-built integrations: enable Address Capture in a range of pre-built integrations with tools like Adobe Commerce, Microsoft Dynamics 365 and Shopify plus
  • SDK: use our Address Capture SDK to quickly create a custom integration
  • APIs: use our Address Capture APIs for full customisation of your integration

Documentation

Follow the links below to relevant documentation for each of these methods: If you’re not sure which integration method is most appropriate for your business needs, see our Ways to Integrate page for more details.

FAQs

See below for some common questions regarding Address Capture as a whole, and the Geolocation functionality specifically.

Address Capture

There are three main ways to integrate Address Capture, and which method is most appropriate will depend on your business and what you want to achieve. Our Ways to Integrate page takes you through each of the different methods.
We provide each address in three different formats:
  • Address label: great for displaying the complete formatted address in a single field or on an envelope
  • Address lines (recommended): use these where you have multiple address line fields. Used alongside Company, town and postal code fields most commonly
  • Address elements: each individual element of the address (e.g. building, street) where you need to separate our the lines of an address into individual fields
Any one of the above approaches will lead to a complete address. The full set of fields can be found in our API documentation pages.Note: It is best not to mix fields from the different formats, as this can lead to missing or duplicated information.
When deciding how to integrate the Address Capture APIs, your decision should take into account performance, technical complexity and, most importantly, security. Whether or not to make calls client-side or server-side is part of the decision-making process regarding security; our API Security page has a section relating to integration options, which should help you decide which option is best for you.
Yes - various additional fields are available, when you get an address from our Retrieve endpoint, and (where the data is available) this includes latitude and Longitude.When using the API, this is achieved by the fieldxformat parameters within the Retrieve method. In order to request the latitude and longitude you need to add them into the parameters, like below:
&field1format={Latitude}&field2format={Longitude}
This will then Return Latitude and Longitude in Field1 and Field2 in the response respectively.If consuming the service via the Tag method, you can enter the same input into the mappings wizard.
Yes - for the best experience when using Address Capture, we recommend you turn off the browser autofill functionality for address form fields.Firstly, below where the Loqate Tag script has been placed on the page, insert the following JavaScript code snippet:
pca.on("load", function(type, id, control){ 
  var isChrome = !!window.chrome || !!window.chrome.webstore; 
  if (isChrome == true){ 
    for (i=0; control.fields.length > i; i++){ 
      pca.getElement(control.fields[i].element).autocomplete = "GBGTEST"; 
    };
  }; 
});
On the Address Form Fields, we have found success in adding the attribute autocomplete=“none”, to disable the browser’s autofill. For example:
autocomplete="none" placeholder="Start typing your address"  autofocus name=“searchTerm” />
We recommended that you test this code across multiple popular web browsers.

Geolocation

Loqate’s Geolocation feature enables mobile users in the UK to find their location with a single tap, instead of needing to type in an address. Using the geographical location of the mobile device, Geolocation returns latitude and longitude coordinates alongside the full, correctly-formatted address.
As with many Loqate products, there are several ways of integration Geolocation on your website. We have documentation available for each integration option, so please see the links below for the relevant information. If you’re not sure which option is best for your organisation, you can find out more on our Ways to Integrate page.
Geolocation is available in the UK only, using AddressBase Premium data.
Geolocation can be paid for either on a pay as you go basis or via a license agreement. Get in touch with the Loqate support team to find out more.
I