/ Assembly List / LJCAddressParserLib / StandardAddress

Namespace - LJCAddressParserLib


Syntax

C#
public class StandardAddress

Provides methods to parse Address information into standardized component properties. (R)

Remarks

Conforms to USPS AIS (Address Information System) products such as Zip+4 and City State files. Based on the USPS Pub28 PDF.

The line parsing methods are: ParseMixedAddress(), ParseDeliveryAddressLine() and ParseLastLine().

Public Methods
#ctor Initializes an object instance.
CreateDeliveryLine Creates the Standardized Delivery Address Line from the Delivery Address Properties.
CreateLastLine Creates the standardized Last Line form the Last Line Properties.
DeliveryAddressToken Retrieves the token at the specified index.
GetAddressPreviousIndex Sets the currentIndex value to the previous index value if it is within the token index range.
GetSeparatedValue Gets the value with a preceding blank if the value exists.
IsCurrentTokenZip4 Checks if the current token is the Zip4 value.
IsCurrentTokenZipcode Checks if the current token is the Zipcode value.
IsDigits Checks a token value for digits.
IsInt Checks a token value for an integer.
LastLinePreviousIndex Sets the currentIndex value to the previous index value if it is within the token index range.
LastLineToken Retrieves the token at the specified index.
LookupDirectional Search Directional Code and Name.
LookupRoad Search the SuffixLookup LookupName and Code.
LookupState Search the StateLookup LookupName, LSoundex and PSoundex.
LookupSuffix Search the SuffixLookup LookupName and Code.
LookupUnit Search Units Name and Code.
ParseAddressNumber Parses a token into the AddressNumber Property.
ParseCity Parses the tokens from index zero to the currentIndex.
ParseDeliveryAddressLine Parses the Delivery Address into the standardized DeliveryAddressLine Property. It also parses the Delivery Address into the Component Properties. (R)
ParseLastLine Parses the Last Line into the standardized LastLine Property. It also parses the Last Line into the Component Properties. (R)
ParseMixedAddress Parses the combined Delivery Address and Last Line values.
ParsePostDirectional Parses a token into the PostDirectional Property.
ParsePreDirectional Parses a token into the PreDirectional Property.
ParseState Parses a token into the StateOrProvince Property.
ParseStreetName Parses the tokens from the currentIndex to the appropriate end Index.
ParseSuffix Parses any preceding suffix token into the Suffix Property.
ParseUnit Parses a token into the Unit Property.
ParseZipCode Parses a token into the Zipcode Property.
29 Methods

Properties
AddressNumber Gets or sets the Address Number value.
AttentionLine Gets or sets the Attention Line.
City Gets or sets the City value.
CountryLine Gets or sets the Country Line.
DeliveryAddressLine Gets or sets the Delivery Address Line.
DeliveryAddressTokens Gets or sets the Delivery Address Tokens.
Directionals Gets or sets the Directionals collection.
ErrorMessages Gets or sets the ErrorMessages value.
LastLine Gets or sets the Last Line.
LastLineTokens Gets or sets the Last Line Tokens.
PhysicalAddressLine Gets or sets the Physical Address Line.
PostDirectional Gets or sets the Post Directional value.
PreDirectional Gets or sets the Pre Directional value.
PrimaryRoads Gets or sets the Primary Roads collection.
RecipientLine Gets or sets the Recipient Line.
RoadLookups Gets or sets the Road Lookup collection.
SecondaryAddressLine Gets or sets the Secondary Address Line.
StateLookups Gets or sets the State Lookup collection.
StateOrProvince Gets or sets the State or Province value.
States Gets or sets the State collection.
StreetName Gets or sets the Street Name value.
Suffix Gets or sets the Suffix value.
Suffixes Gets or sets the Suffix collection.
SuffixLookups Gets or sets the Suffix Lookup collection.
UnitLookups Gets or sets the Units Lookup collection.
UnitNumber Gets or sets the Secondary Unit Number value.
Units Gets or sets the Unit collection.
UnitType Gets or sets the Unit Identifier.
Zip4 Gets or sets the Zip4 value.
Zipcode Gets or sets the Zipcode value.

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.