• Your shopping cart is empty!

Perl Module

This module is a pure Perl API to support all IP2Location™ database products. It has been optimized for speed and memory utilization. Developers can use the API to query all IP2Location™ binary databases for IPv4 and IPv6 address.

Installation
  1. Download perl module and sample database sample.bin.dbx.zip.
  2. Decompress the module.
  3. Install Geo::IP2Location module.
    perl Makefile.PL
    make
    make test
    make install
  4. Decompress the sample database.
    unzip sample.bin.dbx.zip
Sample Codes
use Geo::IP2Location;
$obj = Geo::IP2Location->open("IP-COUNTRY-REGION-CITY-LATITUDE-LONGITUDE-ZIPCODE-TIMEZONE-ISP-DOMAIN-NETSPEED-AREACODE-WEATHER-MOBILE-ELEVATION-USAGETYPE-SAMPLE.BIN");

my $countryshort = $obj->get_country_short("20.11.187.239");
my $countrylong = $obj->get_country_long("20.11.187.239");
my $region = $obj->get_region("20.11.187.239");
my $city = $obj->get_city("20.11.187.239");
my $latitude = $obj->get_latitude("20.11.187.239");
my $longitude = $obj->get_longitude("20.11.187.239");
my $isp = $obj->get_isp("20.11.187.239");
my $domain = $obj->get_domain("20.11.187.239");
my $zipcode = $obj->get_zipcode("20.11.187.239");
my $timezone = $obj->get_timezone("20.11.187.239");
my $netspeed = $obj->get_netspeed("20.11.187.239");
my $iddcode = $obj->get_iddcode("20.11.187.239");
my $areacode = $obj->get_areacode("20.11.187.239");
my $weatherstationcode = $obj->get_weatherstationcode("20.11.187.239");
my $weatherstationname = $obj->get_weatherstationname("20.11.187.239");
my $mcc = $obj->get_mcc("20.11.187.239");
my $mnc = $obj->get_mnc("20.11.187.239");
my $mobilebrand = $obj->get_mobilebrand("20.11.187.239");
my $elevation = $obj->get_elevation("20.11.187.239");
my $usagetype = $obj->get_usagetype("20.11.187.239");
my ($countryshort, $countrylong, $region, $city, $latitude, $longitude, $zipcode, $timezone, $isp, $domain, $netspeed, $iddcode, $areacode, $weatherstationcode, $weatherstationname, $mcc, $mnc, $mobilebrand, $elevation, $usagetype) = $obj->get_all("20.11.187.239");
Sample IP2Location Databases (BIN)
Sample Packages IPv4 IPV6
IP2Location DB1 Sample BIN File Download (699.14 kB) Download (350.84 kB)
IP2Location DB2 Sample BIN File Download (36.69 MB) Download (378.66 kB)
IP2Location DB3 Sample BIN File Download (19.21 MB) Download (363.65 kB)
IP2Location DB4 Sample BIN File Download (52.74 MB) Download (388.27 kB)
IP2Location DB5 Sample BIN File Download (29.23 MB) Download (370.18 kB)
IP2Location DB6 Sample BIN File Download (62.33 MB) Download (393.44 kB)
IP2Location DB7 Sample BIN File Download (58.63 MB) Download (398.64 kB)
IP2Location DB8 Sample BIN File Download (68.46 MB) Download (403.55 kB)
IP2Location DB9 Sample BIN File Download (33.67 MB) Download (373.45 kB)
IP2Location DB10 Sample BIN File Download (73.72 MB) Download (408.65 kB)
IP2Location DB11 Sample BIN File Download (34.35 MB) Download (374.17 kB)
IP2Location DB12 Sample BIN File Download (74.35 MB) Download (409.59 kB)
IP2Location DB13 Sample BIN File Download (32.95 MB) Download (371.65 kB)
IP2Location DB14 Sample BIN File Download (75.65 MB) Download (410.29 kB)
IP2Location DB15 Sample BIN File Download (37.20 MB) Download (378.07 kB)
IP2Location DB16 Sample BIN File Download (80.20 MB) Download (415.93 kB)
IP2Location DB17 Sample BIN File Download (39.74 MB) Download (380.09 kB)
IP2Location DB18 Sample BIN File Download (87.05 MB) Download (425.95 kB)
IP2Location DB19 Sample BIN File Download (71.15 MB) Download (404.88 kB)
IP2Location DB20 Sample BIN File Download (89.29 MB) Download (427.07 kB)
IP2Location DB21 Sample BIN File Download (40.56 MB) Download (380.72 kB)
IP2Location DB22 Sample BIN File Download (93.23 MB) Download (430.11 kB)
IP2Location DB23 Sample BIN File Download (71.53 MB) Download (405.90 kB)
IP2Location DB24 Sample BIN File Download (94.27 MB) Download (431.79 kB)