NAME
Catalyst::Plugin::Geography - Retrieve geographical information
SYNOPSIS
# Retrieve country or code from current user
$c
->geography->country;
$c
->geography->code;
# Retrieve country or code from IP
$c
->geography->country(
'66.102.9.99'
);
$c
->geography->code(
'66.102.9.99'
);
# Retrieve country or code from hostname
$c
->geography->country(
'www.google.com'
);
$c
->geography->code(
'www.google.com'
);
# Retrieve country from code
$c
->geography->country(
'US'
);
# Alias
$c
->geo->code(
'www.google.com'
);
$c
->geo->country(
'US'
);
DESCRIPTION
Retrieve geographical country and country codes from users.
METHODS
- geo
-
alias to geography
- geography
-
Will create or return a Catalyst::Plugin::Geography::Implementation object.
SEE ALSO
Catalyst Catalyst::Plugin::Geography::Implementation.
AUTHOR
Christian Hansen, ch@ngmedia.com
Marcus Ramberg, mramberg@cpan.org
LICENSE
This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.