use HTML::TokeParser;
use URI::Escape 3.31;
use Data::Dumper;
+use FS::Conf;
FS::UID->install_callback( sub {
$conf = new FS::Conf;
my($zip5, $zip4) = split('-',$location->{zip});
- $year ||= '2011'; #2012 per http://transition.fcc.gov/form477/techfaqs.html soon/now?
+ $year ||= '2012';
my @ffiec_args = (
__VIEWSTATE => $viewstate,
__EVENTVALIDATION => $eventvalidation,
$return->{'statecode'} . $return->{'countycode'} . $return->{'tractcode'};
}
-sub get_district_methods {
- '' => '',
- 'wa_sales' => 'Washington sales tax',
-};
+#sub get_district_methods {
+# '' => '',
+# 'wa_sales' => 'Washington sales tax',
+#};
=item get_district LOCATION METHOD
#}
$class = 'Geo::EZLocate'; # use our own library
- eval "use $class";
+ eval "use $class 0.02"; #Geo::EZLocate 0.02 for error handling
die $@ if $@;
my $userid = $conf->config('ezlocate-userid')
latitude => $match->{MAT_LAT},
longitude => $match->{MAT_LON},
censustract => $match->{FIPS_ST}.$match->{FIPS_CTY}.
- sprintf('%04.2f',$match->{CEN_TRCT}),
+ sprintf('%07.2f',$match->{CEN_TRCT}),
addr_clean => 'Y',
};
}