@hmcts/os-places-client
Version:
Ordnance Survey address lookup client (https://apidocs.os.uk/docs/os-places-postcode)
22 lines (21 loc) • 1.35 kB
TypeScript
import { Point } from './point';
export declare class Address {
readonly uprn: string;
readonly organisationName: string | undefined;
readonly departmentName: string | undefined;
readonly poBoxNumber: string | undefined;
readonly buildingName: string | undefined;
readonly subBuildingName: string | undefined;
readonly buildingNumber: number | undefined;
readonly thoroughfareName: string | undefined;
readonly dependentThoroughfareName: string | undefined;
readonly dependentLocality: string | undefined;
readonly doubleDependentLocality: string | undefined;
readonly postTown: string;
readonly postcode: string;
readonly postcodeType: string;
readonly formattedAddress: string;
readonly point: Point;
readonly udprn: string | undefined;
constructor(uprn: string, organisationName: string | undefined, departmentName: string | undefined, poBoxNumber: string | undefined, buildingName: string | undefined, subBuildingName: string | undefined, buildingNumber: number | undefined, thoroughfareName: string | undefined, dependentThoroughfareName: string | undefined, dependentLocality: string | undefined, doubleDependentLocality: string | undefined, postTown: string, postcode: string, postcodeType: string, formattedAddress: string, point: Point, udprn: string | undefined);
}