Geo::IP::Record - Contains city information for GeoIP City Edition |
Geo::IP::Record - Contains city information for GeoIP City Edition
use Geo::IP;
my $gi = Geo::IP->open("/usr/local/share/GeoIP/GeoIPCity.dat", GEOIP_STANDARD);
my $record = $gi->record_by_addr('24.24.24.24');
print $record->country_code, $record->country_code3, $record->country_name, $record->region, $record->city, $record->postal_code, $record->latitude, $record->longitude, $record->dma_code, $record->area_code;
Geo::IP::Record represents objects containing location information returned by the GeoIP City database.
Note at this time only a commercial version - GeoIP City Premium - is available from MaxMind. The database that is distributed free of charge is the GeoIP Standard Country, and is not compatible with this API.
At some point in the future, we may offer a free version - GeoIP City Standard - based only on public data sources such as RIR Whois databases.
1.20
Copyright (c) 2003, MaxMind LLC
All rights reserved. This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Geo::IP::Record - Contains city information for GeoIP City Edition |