Purchase an address for a UPRN
Note: Applies to client version 1.1.X
Ordnance Survey UPRN is a unique identifier for all addressable properties in the UK.
In order to purchase the available variables from the catalog for a particular address, you first need that Postal Address.
Use UPRN to purchase a Postal Address:
// 10 Downing Street, London, SW1A 2AA
var postalAddresses = await client.PurchasePostalAddressesAsync(new UniquePropertyReferenceNumber(100023336956));
Once you have a Postal Address you can then purchase variables from its catalog:
var variableIdentifiersToPurchase = new List<VariableId>
{
new VariableId("...first variable identifier..."),
new VariableId("...second variable identifier...")
};
var purchasedVariables = await client.PurchaseVariablesAsync(postalAddress.CatalogId, variableIdentifiersToPurchase);