Address Validate
/api/v2/address_validate
operationId: address_validate
Live: https://gdapi.globaldata.net.au/api/v2/address_validate · Sandbox: https://sandbox-gdapi.globaldata.net.au/api/v2/address_validate
The Address Validate method tests the supplied address and returns the matched address and a score from 0 to 10 indicating the quality of the match.
Corrections to the address
The address validator will attempt to match the address to the GNAF address database and make corrections to the supplied address if necessary in order to find the closest match.
Permitted changes include:
- Spelling corrections to the street name. For example, "10 Smyth Street" to "10 Smith Street" (permitted if the street number and street name are valid in the given suburb / postcode)
- Changes to the street type. For example, "10 Paper Rd" to "10 Paper St" (permitted if the street number and street name are valid in the given suburb / postcode)
- Changes to the unit type. For example, "Flat" to "Unit"
- Changes to the postcode. For example, "3125" to "3124" (permitted if the street number and street name are valid in an adjacent postcode)
- Spelling corrections to the suburb name. For example, "Smithtown" to "Smithton" (permitted if the street number and street name are valid in the given suburb)
- Changes to the suburb if the street number and street name are valid in an adjacent suburb.
- Changes to the street number if the street number is a range and one of the numbers in the range is matched. For example, "123 Smith St" to "123-125 Smith St"
When changes are made to the supplied address, the address_changes array will be returned with the details of the changes made and the matched_address will be
returned with the corrections applied.
Minimum Validation Requirements
The following combinations of parameters are required on order to validate an address:
street_addressplus at least one ofsuburborpostcodestreet_addressplussuburb_state_postcodefull_address
Request body
Content type application/json.
The address to validate
| Field | Description |
|---|---|
street_address |
string [4..100 characters] or null First line of the street or postal address Requires at least one of suburb or postcode to be provided |
suburb |
string [2..60 characters] or null Suburb name Requires street_address to be provided |
state |
string or null State Requires street_address to be provided |
postcode |
string [3..4 characters] or null Postcode Requires street_address to be provided |
suburb_state_postcode |
string [4..100 characters] or null Combined suburb, state and postcode. Requires street_address to be provided Supports various address formats:
|
full_address |
string [4..255 characters] or null Full address Supports various address formats:
|
Responses
Successful response
application/json
| Field | Description |
|---|---|
message |
string A message indicating the result of the request. This will be |
api_reference |
string (uuid) A unique identifier for this request. This can be used to track the request in the logs. |
valid |
boolean Indicates if the address is valid |
score |
integer or null A score from 0 to 10 indicating the quality of the match with 0 being the worst match and 10 being the best match or null if the address is not valid. The score is calculated as: 10 - number of address changes (with a minimum of 0) |
matched_address |
object The matched address or an empty object if the address is not valid |
matched_address. |
string The GNAF address id of the address |
matched_address. |
string The full address |
matched_address. |
string The first line of the address |
matched_address. |
string The second line of the address |
matched_address. |
string The suburb of the address |
matched_address. |
string The state of the address |
matched_address. |
string The postcode of the address |
matched_address. |
string or null The type of unit of the address eg: 'Flat' in the address: "Flat AA12B, 100 Some St" |
matched_address. |
string or null The prefix of the unit number eg: 'AA' in the address: "Flat AA12B, 100 Some St" |
matched_address. |
string or null The unit number of the address eg: '12' in the address: "Flat AA12B, 100 Some St" |
matched_address. |
string or null The suffix of the unit number eg: 'B' in the address: "Flat AA12B, 100 Some St" |
matched_address. |
string or null The type of level of the address eg: 'L' in the address: "L A12F, 100 Some St" |
matched_address. |
string or null The prefix of the level number eg: 'A' in the address: "L A12F, 100 Some St" |
matched_address. |
string or null The level number of the address eg: '12' in the address: "L A12F, 100 Some St" |
matched_address. |
string or null The suffix of the level number eg: 'F' in the address: "L A12F, 100 Some St" |
matched_address. |
string or null The prefix of the street number eg: 'B' in the address: "B100C - D110E Some St" |
matched_address. |
string or null The numeric part of the first street number eg: '100' in the address: "B100C - D110E Some St" |
matched_address. |
string or null The suffix of the first street number eg: 'C' in the address: "B100C - D110E Some St" |
matched_address. |
string or null The prefix of the second street number eg: 'D' in the address: "B100C - D110E Some St" |
matched_address. |
string or null The numeric part of the second street number eg: '110' in the address: "B100C - D110E Some St" |
matched_address. |
string or null The suffix of the second street number eg: 'E' in the address: "B100C - D110E Some St" |
matched_address. |
string or null The prefix of the lot number eg: 'F' in the address: "Lot F200G Some St" |
matched_address. |
string or null The numeric part of the lot number eg: '200' in the address: "Lot F200G Some St" |
matched_address. |
string or null The suffix of the lot number eg: 'G' in the address: "Lot F200G Some St" |
matched_address. |
string or null The type of postal delivery eg: 'PO Box' in the address: "PO Box H1234J" |
matched_address. |
string or null The prefix of the postal delivery number eg: 'H' in the address: "PO Box H1234J" |
matched_address. |
string or null The numeric part of the postal delivery number eg: '1234' in the address: "PO Box H1234J" |
matched_address. |
string or null The suffix of the postal delivery number eg: 'J' in the address: "PO Box H1234J" |
matched_address. |
string or null The name of the street eg: 'Smith St' in the address: "123 Smith St North" |
matched_address. |
string or null The type of street eg: 'St' in the address: "123 Smith St North" |
matched_address. |
string or null The suffix of the street eg: 'North' in the address: "123 Smith St North" |
address_changes |
array of objects Array of changes made to the provided address in order to match with the GNAF address |
address_changes[]. |
string The address field that was changed |
address_changes[]. |
string The change made to the address field |