| 1 | package GeoIP2; | ||
| 2 | $GeoIP2::VERSION = '0.050000'; | ||
| 3 | use 5.008; | ||
| 4 | |||
| 5 | 1; | ||
| 6 | |||
| 7 | # ABSTRACT: Perl API for MaxMind's GeoIP2 web services and databases | ||
| 8 | |||
| 9 | __END__ | ||
| 10 | |||
| 11 | =pod | ||
| 12 | |||
| 13 | =head1 NAME | ||
| 14 | |||
| 15 | GeoIP2 - Perl API for MaxMind's GeoIP2 web services and databases | ||
| 16 | |||
| 17 | =head1 VERSION | ||
| 18 | |||
| 19 | version 0.050000 | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | This distribution provides an API for the GeoIP2 | ||
| 24 | L<web services|http://dev.maxmind.com/geoip/geoip2/web-services> and | ||
| 25 | L<databases|http://dev.maxmind.com/geoip/geoip2/downloadable>. The API also | ||
| 26 | works with the free | ||
| 27 | L<GeoLite2 databases|http://dev.maxmind.com/geoip/geoip2/geolite2/>. | ||
| 28 | |||
| 29 | See L<GeoIP2::WebService::Client> for details on the web service client API | ||
| 30 | and L<GeoIP2::Database::Reader> for the database API. | ||
| 31 | |||
| 32 | =head1 BETA NOTE | ||
| 33 | |||
| 34 | This is a beta release. The API may change before the first production | ||
| 35 | release, which will be numbered 2.0000. | ||
| 36 | |||
| 37 | You may find information on the GeoIP2 beta release process on | ||
| 38 | L<our website|http://www.maxmind.com/en/geoip2_beta>. | ||
| 39 | |||
| 40 | =head1 SPEEDING UP DATABASE READING | ||
| 41 | |||
| 42 | This module only depends on the pure Perl implementation of the MaxMind | ||
| 43 | database reader (L<MaxMind::DB::Reader>). If you install the libmaxminddb | ||
| 44 | library (L<http://maxmind.github.io/libmaxminddb/>) and | ||
| 45 | L<MaxMind::DB::Reader::XS>, then the XS implementation will be loaded | ||
| 46 | automatically. The XS implementation is approximately 100x faster than the | ||
| 47 | pure Perl implementation. | ||
| 48 | |||
| 49 | =head1 INTEGRATION WITH GEONAMES | ||
| 50 | |||
| 51 | GeoNames (L<http://www.geonames.org/>) offers web services and downloadable | ||
| 52 | databases with data on geographical features around the world, including | ||
| 53 | populated places. They offer both free and paid premium data. Each feature is | ||
| 54 | uniquely identified by a C<geoname_id>, which is an integer. | ||
| 55 | |||
| 56 | Many of the records returned by the GeoIP web services and databases include a | ||
| 57 | C<geoname_id> field. This is the ID of a geographical feature (city, region, | ||
| 58 | country, etc.) in the GeoNames database. | ||
| 59 | |||
| 60 | Some of the data that MaxMind provides is also sourced from GeoNames. We | ||
| 61 | source data such as place names, ISO codes, and other similar data from the | ||
| 62 | GeoNames premium data set. | ||
| 63 | |||
| 64 | =head1 REPORTING DATA PROBLEMS | ||
| 65 | |||
| 66 | If the problem you find is that an IP address is incorrectly mapped, please | ||
| 67 | submit your correction to MaxMind at L<http://www.maxmind.com/en/correction>. | ||
| 68 | |||
| 69 | If you find some other sort of mistake, like an incorrect spelling, please | ||
| 70 | check the GeoNames site (L<http://www.geonames.org/>) first. Once you've searched | ||
| 71 | for a place and found it on the GeoNames map view, there are a number of links | ||
| 72 | you can use to correct data ("move", "edit", "alternate names", etc.). Once | ||
| 73 | the correction is part of the GeoNames data set, it will be automatically | ||
| 74 | incorporated into future MaxMind releases. | ||
| 75 | |||
| 76 | If you are a paying MaxMind customer and you're not sure where to submit a | ||
| 77 | correction, please contact MaxMind support at for help. See | ||
| 78 | L<http://www.maxmind.com/en/support> for support details. | ||
| 79 | |||
| 80 | =head1 VERSIONING POLICY | ||
| 81 | |||
| 82 | This module uses semantic versioning as described by | ||
| 83 | L<http://semver.org/>. Version numbers can be read as X.YYYZZZ, where X is the | ||
| 84 | major number, YYY is the minor number, and ZZZ is the patch number. | ||
| 85 | |||
| 86 | =head1 PERL VERSION SUPPORT | ||
| 87 | |||
| 88 | MaxMind has tested this API with Perl 5.8.8 and above. Reasonable patches for | ||
| 89 | earlier versions of Perl 5.8 will be applied. We will not accept patches to | ||
| 90 | support any version of Perl before 5.8. | ||
| 91 | |||
| 92 | The data returned from the GeoIP2 web services includes Unicode characters in | ||
| 93 | several locales. This may expose bugs in earlier versions of Perl. If Unicode | ||
| 94 | support is important to you, we recommend that you use the most recent version | ||
| 95 | of Perl available. | ||
| 96 | |||
| 97 | =head1 SUPPORT | ||
| 98 | |||
| 99 | Please report all issues with this code using the GitHub issue tracker at | ||
| 100 | L<https://github.com/maxmind/GeoIP2-perl/issues>. | ||
| 101 | |||
| 102 | If you are having an issue with a MaxMind service that is not specific to the | ||
| 103 | client API please see L<http://www.maxmind.com/en/support> for details. | ||
| 104 | |||
| 105 | =head1 AUTHORS | ||
| 106 | |||
| 107 | =over 4 | ||
| 108 | |||
| 109 | =item * | ||
| 110 | |||
| 111 | Dave Rolsky <drolsky@maxmind.com> | ||
| 112 | |||
| 113 | =item * | ||
| 114 | |||
| 115 | Greg Oschwald <goschwald@maxmind.com> | ||
| 116 | |||
| 117 | =item * | ||
| 118 | |||
| 119 | Olaf Alders <oalders@maxmind.com> | ||
| 120 | |||
| 121 | =back | ||
| 122 | |||
| 123 | =head1 CONTRIBUTOR | ||
| 124 | |||
| 125 | =for stopwords Graham Knop | ||
| 126 | |||
| 127 | Graham Knop <haarg@haarg.org> | ||
| 128 | |||
| 129 | =head1 COPYRIGHT AND LICENSE | ||
| 130 | |||
| 131 | This software is copyright (c) 2014 by MaxMind, Inc.. | ||
| 132 | |||
| 133 | This is free software; you can redistribute it and/or modify it under | ||
| 134 | the same terms as the Perl 5 programming language system itself. | ||
| 135 | |||
| 136 | =cut |