IP-Geolocation-MMDB  1.010
About: IP-Geolocation-MMDB is a Perl module that reads MaxMind DB files and maps IP addresses to location information such as country and city names.
  Fossies Dox: IP-Geolocation-MMDB-1.010.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Loading...
Searching...
No Matches
IP-Geolocation-MMDB Documentation

Some Fossies usage hints in advance:

  1. To see the Doxygen generated documentation please click on one of the items in the steelblue colored "quick index" bar above or use the side panel at the left which displays a hierarchical tree-like index structure and is adjustable in width.
  2. If you want to search for something by keyword rather than browse for it you can use the client side search facility (using Javascript and DHTML) that provides live searching, i.e. the search results are presented and adapted as you type in the Search input field at the top right.
  3. Doxygen doesn't incorporate all member files but just a definable subset (basically the main project source code files that are written in a supported language). So to search and browse all member files you may visit the Fossies IP-Geolocation-MMDB-1.010.tar.gz contents page and use the Fossies standard member browsing features (also with source code highlighting and additionally with optional code folding).
README.md

IP::Geolocation::MMDB

A Perl module that reads MaxMind DB files and maps IP addresses to location information such as country and city names.

use IP::Geolocation::MMDB;
my $db = IP::Geolocation::MMDB->new(file => 'Country.mmdb');
my $metadata = $db->metadata;
my $data = $db->record_for_address('1.2.3.4');
my $country_code = $db->getcc('2620:fe::9');

DEPENDENCIES

Requires Alien::libmaxminddb from CPAN. Requires Math::BigInt version 1.999806, which is distributed with Perl 5.26 and newer. Requires libmaxminddb 1.2.0 or newer.

Requires an IP to country, city or ASN database in the MaxMind DB file format from MaxMind or DP-IP.com.

INSTALLATION

Run the following commands to install the software:

perl Makefile.PL
make
make test
make install

Type the following command to see the module usage information:

perldoc IP::Geolocation::MMDB

Copyright (C) 2022 Andreas Vögele

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.