The Validate search type is optimized for users entering the complete address, as it would appear on an envelope. The entire address is submitted to the service, and a confidence is returned. The confidence corresponds to the degree of confidence in the returned address.
Methods
Validate can be used as a passive validation service that requires no user interaction after the initial search has been submitted by only accepting results of Verified confidence or as a interactive validation service.
Passive validation
Enter a full address.
POST /address/validate/v1: A fully formatted address will be returned if a verified match to a single deliverable address was made.
Interactive validation
Enter a full address.
POST /address/validate/v1: A fully formatted address will be returned if a verified match to a single deliverable address was made.
Should the request not return a single deliverable address, request confirmation from the user for matches with Interaction required confidence.
Should the response contain a list of suggestions that need further refinement, you can drill down further by stepping into a suggestion or providing a refinement.
GET /address/suggestions/stepin/v1/{global_address_key}: Step-in allows a user to select a suggestion and 'step into' it to obtain more detailed suggestions.
POST /address/suggestions/refine/v1/{global_address_key}: The user is able to provide additional information for the request, for example to select a single building from building numbers returned in a range.
Repeat the above step as often as necessary until a full address is selected.
Format the selected address, using the global_address_key. You can choose between:
GET /address/format/v1/{global_address_key}: Formats an address into the standard 7 line global layout, thereby creating a well formatted address for every country and territory.
POST /address/format/v1/{global_address_key}: Formats an address into one of your available custom layouts.
Enrichment data
You can include enrichment data by adding the relevant layout to the /Validate/v1 or /Format/v1 endpoint. Please contact us if you would like to purchase Enrichment data.
Recommended implementations
There are three ways that this search type can be implemented into your solution. If an accurate match could not be found, the integrator can choose whether to return the address as it was entered by the user or to return a prompt requesting more user interaction.
The Validate search type may be used with no user interaction required after an initial search has been submitted. This allows an integrator to hide the fact that there is any address management occurring within an application from the user.
This implementation of using the Validate search type means that addresses that are entered will be simply verified as being correct (Verified match, Verified street or Verified place) or not verified as being correct (Interaction required or Multiple matches).
The user then triggers the validation process (i.e. by hitting a button or tabbing out of the last box).
The address entered will either be returned verified or not verified.
The recommended workflow (as demonstrated by our sample code) is:
The relevant address and enrichment components can be stored in your database if required.
The Validate search type may be used with minimal interaction required after an initial search has been submitted. This does not require the use of suggestions, but may require a single confirmation by the user if the service is not highly confident in the match.
This method of using the Validation engine means that addresses that are entered will either be:
The user then triggers the validation process (i.e. by hitting a button or tabbing out of the last box).
The address will then either be:
A verified match. The matched address will be returned to the user.
More interaction required from the user to confirm the address is correct.
If address is not confirmed correct, the original entered address is presented as unverified.
The recommended workflow (as demonstrated by our sample code) is:
The relevant address and enrichment components can be stored in your database if required.
The Validate search type may be used with full user interaction after an initial search has been submitted. This will require the display and use of suggestions for searches that could not locate a single deliverable match.
This method of using the Validation engine means that addresses that are entered will either be:
Verified as being correct.
Verified as being correct after user confirmation.
Matched to one or more close addresses, which the user can interactively traverse.