Klevr Product Documentation logo

AddressFinder PCF Control

Instead of using third party controllers we have created our own.

Feature Overview

Instead of using third party controllers we have created our own. The AddressFinder PCF Control allows you to search for a Addresses with ease. We can also pull other information like the suburb, postcode, city, country, longitude, latitude and more.

Design Details

Basic Usage

First off you will have to add the PCF Control to the Form. You can do so by selecting a field on the form then click the components dropdown on the right. Then press the + Component Button and Select the KlevrAddressControl. Note, if the KlevrAddressControl isn't appearing in the list

Design Details (1)

Design Details (1)

Once you've selected the control it will come up with all the parameters of the control (as shown below). Fill out the parameters as you please and map any fields you wish. Note. You will need to specify which country code you want to search on either fill the country code field with "NZ" or "AU". Further below will be a list of all the parameters and how they work. You will also need to fill in the API Key which you can get from AddressFinder.

Design Details (2)

Design Details (2)

Then click done and the PCF control will be added to the field. Save and Publish the form.

Parameters

Country CodeThe country code you want to search in. (NZ/AU)NZ/AU
Line 1Address of line 1Default attatched to the field.
Line 2Address of line 2Attatch to a field on the form.
SuburbSuburb of Address (NZ Only)Attatch to a field on the form.
CityCity of Address (NZ Only)Attatch to a field on the form.
PostcodePostcode of AddressAttatch to a field on the form.
CountryCountry of AddressAttatch to a field on the form.
LatitudeLatitude of AddressAttatch to a field on the form.
LongitudeLongitude of AddressAttatch to a field on the form.
Locality NameThe locality name. (AU only)Attatch to a field on the form.
State TerritoryThe sate or territory. (AU only)Attatch to a field on the form.
LGA NameThe name of the Local Government Area in which the address is located. These values are provided by the ABS and are an approximation of the gazetted local government boundaries. (AU only)Attatch to a field on the form.
LGA Type CodeThe code relating to the type (or status) of the Local Government Area. (AU only)Attatch to a field on the form.
SA1 IdThe Statistical Area 1 ID. (AU only)Attatch to a field on the form.
SA2 IdThe Statistical Area 2 ID. (AU only)Attatch to a field on the form.
GNAF IdThe unique persistent identifier of the G-NAF address. (AU only)Attatch to a field on the form.
DPIDAustralia Post delivery point identifier. (Note: Not every address will include a DPID)Attatch to a field on the form.
options_empty_contentMessage to display to users when there are no found addresses or locations.true/false
options_ignore_returnsIgnore the use of the enter key when no list item is selected. (Default: true)true/false
options_max_resultsMaximum number of results to display. (Default: 10)Number
options_show_addressesSet to false to hide address results. (Deafualt: true)true/false
options_show_locationsSet to true to return locationresults. (Deafult: false)true/false
options_show_nearbyEnable the nearby address helper. (Default: false)true/false
options_show_points_of_interestSet to true to return points of interest results. (Default: false)true/false
options_address_params_sourceAddress Params Source, either gnaf or paf. Or bothgnaf/paf/gnaf,paf
options_address_metadata_gpsSet to true to allow for GPS coordinates to show. (Default: false)true/false
For use on the portal you will need to add the api key into the appsettings. The field is called AddressFinderAPIKey.

Last updated on