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
Value | Description |
---|---|
string | Ward of the property |
not-found | if no ward is found for the property |
Note: return values are case sensitive
Formula Logic
-
If the search method is UPRN the formula wil call getLPIForUPRN and if the ward is set on the returned object it is returned.
-
If the search method is Postcode the formula wil call getAllLPIsForPostCode and if the ward is set on the returned object it is returned.
-
If the ward is not returned in step 1 or 2, not-found is returned.