in reply to Data Salad Address Problem
The quickest way with US addresses is to use Scrape::USPS::ZipLookup to scrape the United States Postal Service Zip Code Service.
It'll verify that your resultant combination of street address/city/state/zip against the UPS's own postal address database.
From the pod doco:
#!/usr/bin/perl use Scrape::USPS::ZipLookup::Address; use Scrape::USPS::ZipLookup; my $addr = Scrape::USPS::ZipLookup::Address->new( 'Focus Research, Inc.', # Firm '', # Urbanization '8080 Beckett Center Drive Suite 203', # Delivery Address 'West Chester', # City 'OH', # State '45069-5001' # ZIP Code );
|
|---|