| 1 | package WWW::Scraper::Request::ZIPplus4; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | |||
| 5 | use vars qw($VERSION @ISA); | ||
| 6 | $VERSION = sprintf("%d.%02d", q$Revision: 1.4 $ =~ /(\d+)\.(\d+)/); | ||
| 7 | |||
| 8 | use WWW::Scraper::Request; | ||
| 9 | use base qw( WWW::Scraper::Request ); | ||
| 10 | |||
| 11 | sub new { | ||
| 12 | my $self = WWW::Scraper::Request::new( | ||
| 13 | 'ZIPplus4' | ||
| 14 | ,{ | ||
| 15 | 'Firm' => '' | ||
| 16 | ,'Urbanization' => '' | ||
| 17 | ,'DeliveryAddress' => '' # required | ||
| 18 | ,'address2' => '' # optional | ||
| 19 | ,'City' => '' # required unless Zip is provided | ||
| 20 | ,'State' => '' # required unless Zip is provided | ||
| 21 | ,'ZipCode' => '' # recommended, else City and State are required | ||
| 22 | } | ||
| 23 | ,@_); | ||
| 24 | return $self; | ||
| 25 | } | ||
| 26 | |||
| 27 | sub GetFieldNames { | ||
| 28 | return { | ||
| 29 | 'Firm' => 'Firm' | ||
| 30 | ,'Urbanization' => 'Urbanization' | ||
| 31 | ,'DeliveryAddress' => 'Delivery Address' | ||
| 32 | ,'City' => 'City' | ||
| 33 | ,'State' => 'State' | ||
| 34 | ,'ZipCode' => 'Zip Code' | ||
| 35 | } | ||
| 36 | } | ||
| 37 | sub FieldTitles { | ||
| 38 | return { | ||
| 39 | 'Firm' => 'Firm' | ||
| 40 | ,'Urbanization' => 'Urbanization' | ||
| 41 | ,'DeliveryAddress' => 'Delivery Address' | ||
| 42 | ,'City' => 'City' | ||
| 43 | ,'State' => 'State' | ||
| 44 | ,'Zip_Code' => 'Zip Code' | ||
| 45 | } | ||
| 46 | } | ||
| 47 | |||
| 48 | |||
| 49 | 1; | ||
| 50 | |||
| 51 | __END__ |