The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

  Geo::IP::Record - Contains city information for GeoIP City Edition

SYNOPSIS

  use Geo::IP;

  my $gi = Geo::IP->open("/usr/local/share/GeoIP/GeoIPCity.dat", GEOIP_STANDARD);

  my $record = $gi->record_by_addr('65.15.30.247');

  print $record->country_code,
        $record->country_code3,
        $record->country_name,
        $record->region,
        $record->city,
        $record->latitude,
        $record->longitude;

DESCRIPTION

Geo::IP::Record represents objects containing location information returned by the GeoIP City database.

OBJECT METHODS

$code = $record->country_code;

Returns the ISO 3166 country code from the location object.

$code = $record->country_code3;

Returns the ISO 3166 3 letter country code from the location object.

$code = $record->country_name;

Returns the country name from the location object.

$code = $record->region;

Returns the region from the location object.

$code = $record->city;

Returns the city from the location object.

$code = $record->latitude;

Returns the latitude from the location object.

$code = $record->longitude;

Returns the longitude from the location object.

VERSION

1.10

AUTHOR

Copyright (c) 2002, MaxMind.com

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

1 POD Error

The following errors were encountered while parsing the POD:

Around line 58:

You forgot a '=back' before '=head1'