Catalyst::TraitFor::Request::GeoIP - Geo lookups for Catalyst::Requests via Geo::IP
version 0.001
package MyApp; use Moose; use namespace::autoclean; use Catalyst; use CatalystX::RoleApplicator; extends 'Catalyst'; __PACKAGE__->apply_request_class_roles(qw/ Catalyst::TraitFor::Request::GeoIP /); __PACKAGE__->setup;
Extend request objects with a method for geo lookups.
my $record = $ctx->request->geoip_by_addr;
Returns an Geo::IP::Record instance for the request. This allows you to get information about the client's location.
Geo::IP::Record
Matthias Dietrich <perl@rainboxx.de>
This software is copyright (c) 2012 by Matthias Dietrich.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Catalyst::TraitFor::Request::GeoIP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::TraitFor::Request::GeoIP
CPAN shell
perl -MCPAN -e shell install Catalyst::TraitFor::Request::GeoIP
For more information on module installation, please visit the detailed CPAN module installation guide.