ConfirmResidency
 

ConfirmResidency

Definition

bool ConfirmResidency ( string username, string password, InputRecord record, Option[] options )

Description:

Checks if a person can be found to be living at an address. If so, the service returns true. Otherwise, it returns false.

Note that a return value of false does not necessarily indicate that the person does not live at the address given. A person may be opted-out of the edited electoral roll and may not appear on the other data sources used to supplement the electoral roll, but may still be a resident at the address.

View all Electoral Roll Methods

Code Samples

Language:

<!-- Import the Integr8 Ajax API -->
<!-- NOTE: Get your own API key to use in the following script tag from: -->
<!-- http://www.data-8.co.uk/integr8/Admin/Ajax.aspx -->
<script src="http://webservices.data-8.co.uk/Javascript/Loader.ashx?key=your-api-key" type="text/javascript">
</script>

<script type="text/javascript">

function loadIntegr8() {
  // Load the NameAppend Integr8 service
  data8.load('NameAppend');
}

function ConfirmResidency(record) {
  /// <param name="record">data8.inputrecord. Set up the Name, Address properties before calling this method.</param>
  var nameappend = new data8.nameappend();
  
  nameappend.confirmresidency(
    record,
    null,
    showConfirmResidencyResult
  );
}

function showConfirmResidencyResult(result) {
  // Check that the call succeeded, and show the error message if there was a problem.
  if (!result.Status.Success) {
    alert('Error: ' + result.Status.ErrorMessage);
  }
  else {
    // TODO: Process method results here.
    // Results can be extracted from the following fields:
    // result.Result
    //   Indicates if the person has been verified to be living at the requested address.
    // result.MatchLevel
    //   Indicates the match level that the person has been verified to be living at the requested address. Forename, Initial, Surname, Premise or None
  }
}

loadIntegr8();

</script>
Skip Navigation Links
Request handled by server S1 for client 38.107.179.218 at 22/05/2012 23:05:21