Skip to main content

Get Ward From LLPG Data

  • What is it? This formula can be used to get the ward the property resides in from the local LLPG data.

Setup

The formula requires the import of local LLPG address data into your system.

Inputs

This formula has two settings, the URPN or Postcode value to use to search for the ward and the search method (UPRN or Postcode) that should match the type of data passed into to the first setting.

Return values

ValueDescription
stringWard of the property
not-foundif no ward is found for the property

Note: return values are case sensitive

Formula Logic

  1. If the search method is UPRN the formula wil call getLPIForUPRN and if the ward is set on the returned object it is returned.

  2. If the search method is Postcode the formula wil call getAllLPIsForPostCode and if the ward is set on the returned object it is returned.

  3. If the ward is not returned in step 1 or 2, not-found is returned.