APPENDIX A: FORMATTING A PAF ADDRESS FOR PRINTING
Overview
These notes are provided to assist developers using AFD's Postcode Plus data via library calls, to re-create a correctly formatted postal address. Invariably, real-world computer databases seldom have sufficient fields available for the 'official' structure, so the Postcode Plus program makes sensible assumptions, whilst following these rules so far as possible. By accessing the data through the libraries, however, you have access to all the address elements in their raw state (except that the 'Thoroughfare' data already has its descriptors concatenated with the Thoroughfare name) so you can create your own address format as required.
A delivery point is composed of a combination of the following elements. Not all elements are present for each delivery point. Postcode and Post Town are the only two elements that are mandatory. County is no longer required as part of a correct postal address where the postcode is correctly given.
| Organisation elements | Organisation Name |
| Department Name | |
| Premise Elements | Subbuilding Name |
| Building Name | |
| Building Number | |
| Thoroughfare elements | Dependent Thoroughfare Name |
| Dependent Thoroughfare Descriptor | |
| Thoroughfare Name | |
| Thoroughfare Descriptor | |
| Locality Elements | Double Dependent Locality Name |
| Dependent Locality Name | |
| Post Town | |
| Postcode element | Postcode |
| PO Box element | PO Box Number |
Organisation Name
If present, this should appear on the first address line.
Department Name
If present, this should appear on the second line.
PO Box Number
If present, this should appear on the first line if no Organisation/department details are present, else it should appear on the third line.
The following combinations of these elements may occur.
| Rule | Sub-Building Name | Building Name | Building Number |
| 1 | N | N | N |
| 2 | N | N | Y |
| 3 | N | Y | N |
| 4 | N | Y | Y |
| 5 | Y | N | Y |
| 6 | Y | Y | N |
| 7 | Y | Y | Y |
When a Building Name or a Subbuilding Name is present, then the format of the name can determine the position of the name in the address. (See Note).
Rule 1. Organisation Name
This condition may occur when an Organisation Name is used to uniquely identify a delivery point.
Rule 2. Building Number Only
The Building number should appear at the beginning of the first Thoroughfare line. If there is no Thoroughfare information, then the Building number should appear at the beginning of the first Locality line.
Rule 3. Building Name Only
Check format of Building Name (see Note).
If a Format 1 Building Name
the Building Name should appear at the beginning of the first Thoroughfare line, or the first Locality line if there is no Thoroughfare information.
Else
the Building Name should appear on a line preceding the Thoroughfare and Locality information.
When a building has a name and a number range, both must be held in the Building Name field because the Building Number field will only allow numeric characters to be held. Rule 3 will still apply to this.
Rule 4. Building Name and Building number
The Building Name should appear on the line preceding the Thoroughfare and/or Locality information.
The Building Number should appear at the beginning of the first Thoroughfare line. If there is no Thoroughfare information, then the Building Number should appear at the beginning of the first Locality line.
Rule 5 Sub-building Name and Building number
The Sub-building Name should appear on the line preceding the Thoroughfare and Locality information.
The Building number should appear at the beginning of the first Thoroughfare line. If there is no Thoroughfare information, then the Building number should appear at the beginning of the first Locality line.
Rule 6 Sub-building Name and Building name
Check format of Subbuilding Name (see Note).
If a Format 1 Subbuilding Name
the Subbuilding Name should appear on the same line as and before the Building Name.
Else
the Subbuilding Name should appear on a line preceding the Building Name, Thoroughfare and Locality information.
Check format of Building Name (see Note).
If a Format 1 Building Name
the Building Name should appear at the beginning of the first Thoroughfare line, or the first Locality line if there is no Thoroughfare information
Else
the Building Name should appear on a line preceding the Thoroughfare and Locality information.
End if
Rule 7 Sub-building Name, Building Name and Building Number
Check format of Subbuilding Name (see Note).
If a Format 1 Subbuilding Name
the Subbuilding Name should appear on the same line as and before the Building Name
Else
the Subbuilding Name and the Building Name should appear on separate lines
End if
The Building number should appear at the beginning of the first Thoroughfare line, or the first Locality line if there is no Thoroughfare information.
Note
Checking the format of Subbuilding Name or Building Name
Certain of these names can appear on the same line as other address elements. These are called Format 1 names in the address formatting rules. They are identified by:
i. First and Last characters of the Name are numeric
ii. First and penultimate characters are numeric, last character is alphabetic
This covers names like:
2A
123-126
81 & 85
| Postcode Plus | ||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||
![]() |
| Manual Contents | ||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||
![]() |
| Appendix | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
![]() |