stdaddr — A composite type that consists of the elements of an address. This is the return type for standardize_address
function.
A composite type that consists of elements of an address. This is the return type for standardize_address function. Some descriptions for elements are borrowed from PAGC Postal Attributes.
The token numbers denote the output reference number in the rules table.
This method needs address_standardizer extension.
is text (token number 0
): Refers to building number or name. Unparsed building identifiers and types. Generally blank for most addresses.
is a text (token number 1
): This is the street number on a street. Example 75 in 75 State Street
.
is text (token number 2
): STREET NAME PRE-DIRECTIONAL such as North, South, East, West etc.
is text (token number 3
): STREET NAME PRE-MODIFIER Example OLD in 3715 OLD HIGHWAY 99
.
is text (token number 4
): STREET PREFIX TYPE
is text (token number 5
): STREET NAME
is text (token number 6
): STREET POST TYPE e.g. St, Ave, Cir. A street type following the root street name. Example STREET in 75 State Street
.
is text (token number 7
): STREET POST-DIRECTIONAL A directional modifier that follows the street name.. Example WEST in 3715 TENTH AVENUE WEST
.
is text (token number 8
): RURAL ROUTE . Example 8 in RR 7
.
is text: Extra information like Floor number.
is text (token number 10
): Example Boston.
is text (token number 11
): Example MASSACHUSETTS
is text (token number 12
): Example USA
is text POSTAL CODE (ZIP CODE) (token number 13
): Example 02109
is text POSTAL BOX NUMBER (token number 14 and 15
): Example 02109
is text Apartment number or Suite Number (token number 17
): Example 3B in APT 3B
.