• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

bin/H18-Jun-2019-10679

lib/H18-Jun-2019-5,2081,381

maxmind-db/H03-May-2022-43,92543,589

t/H18-Jun-2019-2,5872,234

xt/H18-Jun-2019-668502

CONTRIBUTING.mdH A D18-Jun-20194.1 KiB13488

ChangesH A D18-Jun-20196.8 KiB254139

INSTALLH A D18-Jun-20192.2 KiB7346

LICENSEH A D18-Jun-201917.9 KiB380292

MANIFESTH A D18-Jun-20194.9 KiB143142

META.jsonH A D18-Jun-201943.3 KiB1,3061,304

META.ymlH A D18-Jun-201928.2 KiB987986

Makefile.PLH A D18-Jun-20193 KiB125114

README.mdH A D18-Jun-20195.6 KiB12890

cpanfileH A D18-Jun-20192.6 KiB8378

dist.iniH A D18-Jun-2019605 2721

perlcriticrcH A D18-Jun-20192.5 KiB9666

perltidyrcH A D18-Jun-2019213 1211

tidyall.iniH A D18-Jun-2019800 4439

README.md

1# NAME
2
3GeoIP2 - Perl API for MaxMind's GeoIP2 web services and databases
4
5# VERSION
6
7version 2.006002
8
9# DESCRIPTION
10
11This distribution provides an API for the GeoIP2
12[web services](http://dev.maxmind.com/geoip/geoip2/web-services) and
13[databases](http://dev.maxmind.com/geoip/geoip2/downloadable). The API also
14works with the free
15[GeoLite2 databases](http://dev.maxmind.com/geoip/geoip2/geolite2/).
16
17See [GeoIP2::WebService::Client](https://metacpan.org/pod/GeoIP2::WebService::Client) for details on the web service client API
18and [GeoIP2::Database::Reader](https://metacpan.org/pod/GeoIP2::Database::Reader) for the database API.
19
20# SPEEDING UP DATABASE READING
21
22This module only depends on the pure Perl implementation of the MaxMind
23database reader ([MaxMind::DB::Reader](https://metacpan.org/pod/MaxMind::DB::Reader)). If you install the libmaxminddb
24library ([http://maxmind.github.io/libmaxminddb/](http://maxmind.github.io/libmaxminddb/)) and
25[MaxMind::DB::Reader::XS](https://metacpan.org/pod/MaxMind::DB::Reader::XS), then the XS implementation will be loaded
26automatically. The XS implementation is approximately 100x faster than the
27pure Perl implementation.
28
29# VALUES TO USE FOR DATABASE OR HASH KEYS
30
31**We strongly discourage you from using a value from any `names` accessor as
32a key in a database or hash.**
33
34These names may change between releases. Instead we recommend using one of the
35following:
36
37- [GeoIP2::Record::City](https://metacpan.org/pod/GeoIP2::Record::City) - `$city->geoname_id`
38- [GeoIP2::Record::Continent](https://metacpan.org/pod/GeoIP2::Record::Continent) - `$continent->code` or `$continent->geoname_id`
39- [GeoIP2::Record::Country](https://metacpan.org/pod/GeoIP2::Record::Country) and [GeoIP2::Record::RepresentedCountry](https://metacpan.org/pod/GeoIP2::Record::RepresentedCountry) - `$country->iso_code` or `$country->geoname_id`
40- [GeoIP2::Record::Subdivision](https://metacpan.org/pod/GeoIP2::Record::Subdivision) - `$subdivision->iso_code` or `$subdivision->geoname_id`
41
42# INTEGRATION WITH GEONAMES
43
44GeoNames ([http://www.geonames.org/](http://www.geonames.org/)) offers web services and downloadable
45databases with data on geographical features around the world, including
46populated places. They offer both free and paid premium data. Each feature is
47uniquely identified by a `geoname_id`, which is an integer.
48
49Many of the records returned by the GeoIP web services and databases include a
50`geoname_id` field. This is the ID of a geographical feature (city, region,
51country, etc.) in the GeoNames database.
52
53Some of the data that MaxMind provides is also sourced from GeoNames. We
54source data such as place names, ISO codes, and other similar data from the
55GeoNames premium data set.
56
57# REPORTING DATA PROBLEMS
58
59If the problem you find is that an IP address is incorrectly mapped, please
60submit your correction to MaxMind at [http://www.maxmind.com/en/correction](http://www.maxmind.com/en/correction).
61
62If you find some other sort of mistake, like an incorrect spelling, please
63check the GeoNames site ([http://www.geonames.org/](http://www.geonames.org/)) first. Once you've searched
64for a place and found it on the GeoNames map view, there are a number of links
65you can use to correct data ("move", "edit", "alternate names", etc.). Once
66the correction is part of the GeoNames data set, it will be automatically
67incorporated into future MaxMind releases.
68
69If you are a paying MaxMind customer and you're not sure where to submit a
70correction, please contact MaxMind support at for help. See
71[http://www.maxmind.com/en/support](http://www.maxmind.com/en/support) for support details.
72
73# VERSIONING POLICY
74
75This module uses semantic versioning as described by
76[http://semver.org/](http://semver.org/). Version numbers can be read as X.YYYZZZ, where X is the
77major number, YYY is the minor number, and ZZZ is the patch number.
78
79# PERL VERSION SUPPORT
80
81This API supports Perl 5.10 and above.
82
83The data returned from the GeoIP2 web services includes Unicode characters in
84several locales. This may expose bugs in earlier versions of Perl. If Unicode
85support is important to you, we recommend that you use the most recent version
86of Perl available.
87
88# SUPPORT
89
90This module is deprecated and will only receive fixes for major bugs and
91security vulnerabilities. New features and functionality will not be added.
92
93Please report all issues with this code using the GitHub issue tracker at
94[https://github.com/maxmind/GeoIP2-perl/issues](https://github.com/maxmind/GeoIP2-perl/issues).
95
96If you are having an issue with a MaxMind service that is not specific to the
97client API please see [http://www.maxmind.com/en/support](http://www.maxmind.com/en/support) for details.
98
99Bugs may be submitted through [https://github.com/maxmind/GeoIP2-perl/issues](https://github.com/maxmind/GeoIP2-perl/issues).
100
101# AUTHORS
102
103- Dave Rolsky <drolsky@maxmind.com>
104- Greg Oschwald <goschwald@maxmind.com>
105- Mark Fowler <mfowler@maxmind.com>
106- Olaf Alders <oalders@maxmind.com>
107
108# CONTRIBUTORS
109
110- Adam Lapczynski <alapczynski@maxmind.com>
111- Andy Jack <github@veracity.ca>
112- E. Choroba <choroba@matfyz.cz>
113- Florian Ragwitz <rafl@debian.org>
114- Graham Knop <haarg@haarg.org>
115- Mateu X Hunter <mhunter@maxmind.com>
116- Michael F. Canzoneri <mikecanzoneri@gmail.com>
117- Narsimham Chelluri <nchelluri@maxmind.com>
118- Narsimham Chelluri <nchelluri@users.noreply.github.com>
119- Patrick Cronin <PatrickCronin@users.noreply.github.com>
120- William Storey <wstorey@maxmind.com>
121
122# COPYRIGHT AND LICENSE
123
124This software is copyright (c) 2013 - 2019 by MaxMind, Inc.
125
126This is free software; you can redistribute it and/or modify it under
127the same terms as the Perl 5 programming language system itself.
128