joevandyk/usps-address-validator
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
OVERVIEW This is a little program that interacts with the USPS address validation API. You give it JSON and this will give you cleaned-up JSON. You will need to sign up with the USPS folks and have them give you logins. If you are working with their test environment, modify the SITE and API_URL constants below. Given this JSON string over STDIN: { "address1": "771 Encina", "address2": "", "city": "Gilbert", "state": "AZ", "zip": "" } Will spit out this cleaned up JSON: { "address1": "771 E ENCINAS AVE", "address2": "", "city": "GILBERT", "state": "AZ" "zip": "85234", "success": true, } If USPS can't find the address, it'll output something like: { "error_message": "Address Not Found.", "success": false }
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published