Table of Contents

Search

  1. Preface
  2. Introduction to Informatica Address Verification (On-Premises)
  3. General Settings
  4. Input Parameters
  5. Process Parameters
  6. Address Enrichments
  7. Result Parameters
  8. Output Fields
  9. Assessment Codes and Return Codes
  10. Frequently Asked Questions

Developer Guide (On-Premises)

Developer Guide (On-Premises)

How Do I Assign an Address to an AddressObject

How Do I Assign an Address to an AddressObject

You must choose an appropriate address format before you assign an address to an AddressObject. The quality of result you receive depends on the address format that you use to assign the address to the AddressObject.
The address formats can be broadly classified into three: fielded data, partially-fielded data, and unfielded data. Informatica Address Verification returns the most accurate results for fielded data and the least accurate for unfielded data.
The following examples show the API calls for assigning a fielded address to the AddressObject.
Before you assign an address to the AddressObject, call the
AD_ClearData()
function to clear any data that is present.
Assigning a fielded address using the C direct API
AD_SetInputAddressElement( hAOHandle, "Country", 1, NULL, "Canada" ); AD_SetInputAddressElement( hAOHandle, "PostalCode", 1, NULL, "G1R 3X2" ); AD_SetInputAddressElement( hAOHandle, "Locality", 1, NULL, "Toronto" ); AD_SetInputAddressElement( hAOHandle, "DeliveryService", 1, NULL, "PO Box 1827" );
Assigning a fielded address using the Java direct API
m_oAO.setInputAddressElement("Country", 1, null, "Canada"); m_oAO.setInputAddressElement("PostalCode", 1, null, "G1R 3X2"); m_oAO.setInputAddressElement("Locality", 1, null, "Toronto"); m_oAO.setInputAddressElement("DeliveryService", 1, null, "PO Box 1827");
Assigning a fielded address using the C XML API
AD_SetInputDataXML( hAOHandle, "<?xml version='1.0' encoding='ISO-8859-1'?>\n" "<!DOCTYPE InputData SYSTEM 'InputData.dtd'>\n" "<InputData>\n" "<AddressElements>\n" "<Country Item='1' Type='NAME'>SGP</Country>\n" "<Locality Item='1' Type='COMPLETE'>Singapore</Locality>\n" "<PostalCode Item='1' Type='FORMATTED'>048624</PostalCode>\n" "<Street Item='1' Type='COMPLETE'>Raffles Place</Street>\n" "<Number Item='1' Type='COMPLETE'>80</Number>\n" "<Building Item='1' Type='COMPLETE'>#50-01 UOB Plaza 1</Building>\n" "<Organization Item='1' Type='NAME'>AddressDoctor GmbH</Organization>\n" "</AddressElements>\n" "</InputData>\n" );
Assigning a fielded address using the Java XML API
m_oAO.setInputDataXML( "<?xml version='1.0' encoding='UTF-16'?>"+ "<!DOCTYPE InputData SYSTEM InputData.dtd'>"+ "<InputData>"+ "<AddressElements>"+ " <Key>4711</Key>"+ " <Country Item='1' Type='NAME'>SGP</Country>"+ " <Locality Item='1' Type='COMPLETE'>Singapore</Locality>"+ " <PostalCode Item='1' Type='FORMATTED'>048624</PostalCode>"+ " <Street Item='1' Type='COMPLETE'>Raffles Place</Street>"+ " <Number Item='1' Type='COMPLETE'>80</Number>"+ " <Building Item='1' Type='COMPLETE'>#50-01 UOB Plaza 1</Building>"+ " <Organization Item='1' Type='NAME'>AddressDoctor GmbH</Organization>"+ "</AddressElements>"+ "</InputData>");

0 COMMENTS

We’d like to hear from you!