- Make fields optional
- Implement auto detection and selection of header fields
- Log Writer
- Add more comments to code and build documentation
- Finish how-to and about window
USPS Address Verification Tool - a tool designed to read Comma-Separated Values files for addresses and verify them against the USPS database. Great for cleansing database of users and validate their mailing addresses.
- Windows 7 and/or higher
- .NET 4.5 (recommended)
To clone the project in your Windows machine:
- Install git on your machine.
- Open Git Shell. Type in your desired directory using
$ cd your_directory
- Clone the repository using
$ git clone https://github.com/IndianaCHE/USPS-Address-Verifier
- Open
USPS Address Verifier.slnusing Visual Studio IDE.
Alternatively you may simply download the portable version of the tool if you do not want to compile and build it yourself.
-
Takes in a csv file and generates three csv files - one each for correct addresses, incorrect addresses, and addresses which require certain actions (missing info, multiple mailing addresses found, etc). For error and action lists the tool also generates appropriate message for every entry.
-
Generates the output files in a Results folder by default. This folder is auto created in the input file directory by default. This can be changes anytime by specifying the output directory.
-
Properly formats the mailing addresses in the format provided by USPS. For instance, the tool auto corrects
101 west ohio streetto101 W OHIO ST. -
Auto detects headers then auto selects them. User may change them on their own.
Tool created and maintained by nideshchitrakar.
Made using USPS Web Tools API.
Utilizes the following libraries/references:
-
First step is to register for a USPS Web Tools ID to access the API. Visit this link and register to get an ID. You will get the ID in an email soon after filling out the registration form. The ID is a 12 digit alpha-numeric code.
-
After getting your ID, launch the Address Verification tool and go to
File -> USPS ID. Click onEditand type/paste in your ID in the text box. After that click onSaveand chooseDone. -
Now you are all set and you may use the tool to access the USPS Web Tools API.
Once the setup is complete you may use the tool to validate mailing addresses from csv files.
Click on the Browse button next to the Input File text box. The Windows Folder Browser opens up prompting you to
browse your file system and open a csv file.
By default, the output directory is the same as your input file directory. If you need to change it simply click the
Browse button next to the Output Directory text box.
Each csv file represents a table of data. Therefore, each file contains column headers and data is separated into columns. For instance, a csv file containing address data for some people may be visualized as:
| ID | Name | Address1 | Address2 | City | State | ZipCode |
|---|---|---|---|---|---|---|
| 123456 | John White | 101 W OHIO ST | Apt #314 | Indianapolis | IN | 46204 |
Here Street Address is Address1 column, Apt/Box Number is Address2 column, City is City column, State is State column, and
Zip Code is ZipCode column.
When you load a csv file, the tool tries to detect and select the columns automatically. However the tool may not always select the correct ones, especially if their names are not conventional. Therefore it is imperative that you select the proper column headers, otherwise the tool may return your addresses as invalid.
After you select the proper column headers or verify that the tool selected the correct ones, you may click the Run Scan button to start the
validation process.
On the bottom of the tool's UI, there is a progress bar which gives you a real time indication of the scan progress. Some files may be very big (thousands of rows) and may take time to get validated. The progress bar is there to assure you that the tool is active and working on validating your csv file.
- You are required to have the different parts of the mailing addresses separated into different columns, i.e., Street Addresses, Apartment/Box Numbers, City, State, Zip Codes must all be in separate columns.
- Apartment/Box numbers are optional but the rest are required to properly validate an address.
- The headers are automatically detected and selected upon file load. The headers may not match completely all the time due to various naming conventions. So make sure to check the header boxes before running the scan.
- Select "None" for headers which are not applicable to your file.
- If you do not specify an output directory, the tool will create a "Results" folder in the directory your input file is located in.
- It is highly recommended that you name your column headers with conventional names such as "Address1" for Street Addresses, "Address2" for Apartment/Box Info, "City", "State", "Zip" for Cities, States, and Zip Codes respectively.
Refer to the README file in the project folder for complete code documentation.
- Ability to read Excel files.
See the LICENSE file for license rights and limitations (MIT).
