1GeoIP2::Record::Postal(U3s)er Contributed Perl DocumentatGieoonIP2::Record::Postal(3)
2
3
4

NAME

6       GeoIP2::Record::Postal - Contains data for the postal code record
7       associated with an IP address
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 $insights = $client->insights( ip => '24.24.24.24' );
23
24         my $postal_rec = $insights->postal();
25         print $postal_rec->code(), "\n";
26

DESCRIPTION

28       This class contains the postal code data associated with an IP address.
29
30       This record is returned by all the end points except the Country end
31       point.
32

METHODS

34       This class provides the following methods:
35
36   $postal_rec->code()
37       This returns the postal code associated with the IP address. Postal
38       codes are not available for all countries. In some countries, this will
39       only contain part of the postal code.
40
41       This attribute is returned by all end points except the Country end
42       point.
43
44   $postal_rec->confidence()
45       This returns a value from 0-100 indicating MaxMind's confidence that
46       the postal code is correct.
47
48       This attribute is only available from the Insights end point and the
49       GeoIP2 Enterprise database.
50

SUPPORT

52       Bugs may be submitted through
53       <https://github.com/maxmind/GeoIP2-perl/issues>.
54

AUTHORS

56       •   Dave Rolsky <drolsky@maxmind.com>
57
58       •   Greg Oschwald <goschwald@maxmind.com>
59
60       •   Mark Fowler <mfowler@maxmind.com>
61
62       •   Olaf Alders <oalders@maxmind.com>
63
65       This software is copyright (c) 2013 - 2019 by MaxMind, Inc.
66
67       This is free software; you can redistribute it and/or modify it under
68       the same terms as the Perl 5 programming language system itself.
69
70
71
72perl v5.38.0                      2023-07-20         GeoIP2::Record::Postal(3)
Impressum