Geo::PostalCode::InstallDB - Create and install a new location database for Geo::PostalCode.
use Geo::PostalCode::InstallDB; Geo::PostalCode::InstallDB->install(zipdata => 'Geo-PostalCode_19991101.txt', db_dir => '.') or die "Couldn't install DB!\n";
This class contains only one useful method:
install. It takes a text file, the name of which should be given in the
zipdata parameter, and converts it into three Berkeley database files (postalcode.db, latlon.db, and city.db) which will be installed in the directory given as the
The format of these files is a series of lines, the first of which is skipped. Each has five tab-seperated values:
postal_code lat lon city state