USPS Standardization
StandardizeStreetAddress Method
Example 



KellermanSoftware.USPSStandardization Namespace > StandardizationLogic Class : StandardizeStreetAddress Method
The address to standardize
Standardize a street address using conventions from USPS Publication 28: http://pe.usps.gov/cpim/ftp/pubs/pub28/pub28.pdf
Syntax
'Declaration
 
Public Function StandardizeStreetAddress( _
   ByVal address As String _
) As String
'Usage
 
Dim instance As StandardizationLogic
Dim address As String
Dim value As String
 
value = instance.StandardizeStreetAddress(address)
public string StandardizeStreetAddress( 
   string address
)
public:
String^ StandardizeStreetAddress( 
   String^ address
) 

Parameters

address
The address to standardize

Return Value

A standardized address
Example
//Trial Mode
StandardizationLogic standardization = new StandardizationLogic();
 
//License Mode
StandardizationLogic standardization2 = new StandardizationLogic("John Smith 101", "asdfou==");
 
string addressToStandardize = "1500 Serpentine Road, Suite 100";
string result = standardization.StandardizeStreetAddress(addressToStandardize);
 
//This will output: 1500 SERPENTINE RD STE 100
Console.WriteLine(result);
'Trial Mode
Dim standardization As New StandardizationLogic()
 
'License Mode
Dim standardization2 As New StandardizationLogic("John Smith 101", "asdfou==")
 
Dim addressToStandardize As String = "1500 Serpentine Road, Suite 100"
Dim result As String = standardization.StandardizeStreetAddress(addressToStandardize)
 
'This will output: 1500 SERPENTINE RD STE 100
Console.WriteLine(result)
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

StandardizationLogic Class
StandardizationLogic Members