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 Retrieve a Suggested Correction?

How Do I Retrieve a Suggested Correction?

You can retrieve a suggested correction by calling the
AD_GetResultAddressElement()
in the C direct API or
m_oAO.getResultAddressElement()
in Java direct API.
You must first run the
AD_Process()
function or its equivalent in Java to process an address.
Retrieving an address suggestion through the C direct API
AD_U32 ulNumResults; size_t stCurResult; AD_GetResultCount( hAOHandle, &ulNumResults ); for( stCurResult = 1; stCurResult <= ulNumResults; stCurResult++ ) { char sStreet[ 256 ]; AD_U32 ulNumItems; size_t stCurItem; AD_GetResultAddressElementItemCount( hAOHandle, 1, "Street", &ulNumItems ); for( stCurItem = 1; stCurItem <= ulNumItems; stCurItem++ ) { AD_GetResultAddressElement( hAOHandle, stCurResult, "Street", stCurItem, "COMPLETE", sStreet, sizeof( sStreet ) ); printf( "Result %u: Street item %u: %s\n", stCurResult, stCurItem, sStreet ); } }
Retrieving an address suggestion through the Java direct API
int NumResults = m_oAO.getResultCount(); int CurResult; for (CurResult = 1; CurResult <= NumResults; CurResult++) { int NumItems = m_oAO.getResultAddressElementItemCount(CurResult, "Street"); int CurItem; for (CurItem = 1; CurItem <= NumItems; CurItem++) { System.out.println(m_oAO.getResultAddressElement(CurResult, "Street", CurItem, "COMPLETE")); } }
Retrieving an address suggestion through the C XML API
char sResultXML[ 16 * 1024 ]; AD_GetResultXML( hAOHandle, sResultXML, sizeof( sResultXML ) );
Retrieving an address suggestion through the Java XML API
String sResultXML = ""; sResultXML = m_oAO.getResultXML();

0 COMMENTS

We’d like to hear from you!