parseFormattedAddress()
function parseFormattedAddress(formattedAddress): PostalAddress
Given a formatted address, attempts to parse out the known parts for a US address.
This function is a best-effort attempt to parse a formatted address into its constituent parts, not necessarily CASS-certified.
Parameters
Parameter | Type | Description |
---|---|---|
formattedAddress | SanitizedPostalAddress | The mostly formatted address to parse. |
Returns
The parsed address
Throws
If input cannot be parsed to a state level.