1GeoIP2::Model::Country(U3s)er Contributed Perl DocumentatGieoonIP2::Model::Country(3)
2
3
4

NAME

6       GeoIP2::Model::Country - Model class for the GeoIP2 Precision: Country
7       and GeoIP2 Country
8

VERSION

10       version 2.006002
11

SYNOPSIS

13         use 5.008;
14
15         use GeoIP2::WebService::Client;
16
17         my $client = GeoIP2::WebService::Client->new(
18             account_id  => 42,
19             license_key => 'abcdef123456',
20         );
21
22         my $country = $client->country( ip => '24.24.24.24' );
23
24         my $country_rec = $country->country();
25         print $country_rec->iso_code(), "\n";
26

DESCRIPTION

28       This class provides a model for the data returned by the GeoIP2
29       Precision: Country web service and the GeoIP2 Country database.
30

METHODS

32       This class provides the following methods, each of which returns a
33       record object.
34
35   $country->continent()
36       Returns a GeoIP2::Record::Continent object representing continent data
37       for the requested IP address.
38
39   $country->country()
40       Returns a GeoIP2::Record::Country object representing country data for
41       the requested IP address. This record represents the country where
42       MaxMind believes the IP is located.
43
44   $country->maxmind()
45       Returns a GeoIP2::Record::MaxMind object representing data about your
46       MaxMind account.
47
48   $country->registered_country()
49       Returns a GeoIP2::Record::Country object representing the registered
50       country data for the requested IP address. This record represents the
51       country where the ISP has registered a given IP block and may differ
52       from the user's country.
53
54   $country->represented_country()
55       Returns a GeoIP2::Record::RepresentedCountry object for the country
56       represented by the requested IP address. The represented country may
57       differ from the "country" for things like military bases.
58
59   $country->traits()
60       Returns a GeoIP2::Record::Traits object representing the traits for the
61       requested IP address.
62

SUPPORT

64       Bugs may be submitted through
65       <https://github.com/maxmind/GeoIP2-perl/issues>.
66

AUTHORS

68       •   Dave Rolsky <drolsky@maxmind.com>
69
70       •   Greg Oschwald <goschwald@maxmind.com>
71
72       •   Mark Fowler <mfowler@maxmind.com>
73
74       •   Olaf Alders <oalders@maxmind.com>
75
77       This software is copyright (c) 2013 - 2019 by MaxMind, Inc.
78
79       This is free software; you can redistribute it and/or modify it under
80       the same terms as the Perl 5 programming language system itself.
81
82
83
84perl v5.34.0                      2021-07-22         GeoIP2::Model::Country(3)
Impressum