FindResidents
 

FindResidents

Definition

Name[] FindResidents ( string username, string password, Address address, Option[] options )

Description:

Gets a list of all the people known to be resident at an address.

Note that the list returned may not be complete as some residents may have opted out of the edited electoral roll, and may not be present on the other data sources used to supplement the electoral roll.

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 FindResidents(address) {
  /// <param name="address">data8.address. Set up the Lines properties before calling this method.</param>
  var nameappend = new data8.nameappend();
  
  nameappend.findresidents(
    address,
    null,
    showFindResidentsResult
  );
}

function showFindResidentsResult(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.Results
    //   Contains an array of names of people found to be living at the requested address.
    //   Each name in the array contain Title, Forename, MiddleName and Surname fields
    //   to extract the required parts of the name.
  }
}

loadIntegr8();

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