There are 3 levels to the Maxmind database. If that parameter isn't given, the module will attempt to find the databases, but that can't be guaranteed Takes one optional parameter, directory, which tells the library where to find the files admin1db, admin2.db and cities. METHODS new $geocoder = Geo::Coder::Free::MaxMind->new() To significantly speed this up, gunzip cities.csv and run it through the db2sql script to create an SQLite file. Refer to the source URL for licencing information for these files: cities.csv is from admin1.db is from admin2.db is from Geo::Coder::Free::MaxMind provides an interface to free databases. My $location = $geocoder->geocode(location => 'Ramsgate, Kent, UK') DESCRIPTION My $geocoder = Geo::Coder::Free::MaxMind->new() Version 0.29 SYNOPSIS use Geo::Coder::Free::MaxMind Geo::Coder::Free::MaxMind - Provides a geocoding functionality using the MaxMind and GeoNames databases VERSION
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |