How to Install Geo::Coder::US on Centos 5

1.  Download the following Perl modules from CPAN http://search.cpan.org/~sderle/Geo-Coder-US/US.pm

  • Carp-Assert-0.20
  • Class-Accessor-0.34
  • Class-Data-Inheritable-0.08
  • Geo-TigerLine-0.02
  • Geo-Fips55-0.01
  • Geo-StreetAddress-US-1.03
  • Geo-Coder-US-1.00

2.  Build and install the modules in the order shown above using

perl Makefile.PL
make
make test
make install

See http://servers.digitaldaze.com/extensions/perl/modules.html for notes on how to install Perl modules

3.  Download the pre-built 2006 Tiger geocoder database from

4.  Use the geocode_cli.pl script in the Geo-Coder-US-1.00/eg directory to test your installation:

[root@centos-pc eg]# ./geocode_cli.pl /home/goldthorp/downloads/geocoder.db
Geo::Coder::US ver. 1.00 command line interface!
Enter a US address or intersection.
> 765 pine pl merritt island fl 32952
$VAR1 = [
          {
            'number' => 765,
            'lat' => '28.319399',
            'street' => 'Pine',
            'state' => 'FL',
            'sec_unit_num' => '3',
            'city' => 'Merritt Island',
            'zip' => '32952',
            'suffix' => '',
            'long' => '-80.683033',
            'type' => 'Pl',
            'sec_unit_type' => 'fl',
            'prefix' => ''
          }
        ];

(Query took 0.002 seconds)