Ham::Locator - Convert between Maidenhead locators and latitude/longitude.
use Ham::Locator; my $m = new Ham::Locator; $m->set_loc('IO93lo'); my ($latitude, $longitude) = $m->loc2latlng;
Carp - for error handling
Class::Accessor - for accessor method generation
Creates a new Ham::Locator object.
Ham::Locator
Sets the locator to use for conversion to latitude and longitude.
converts the latitude and longitude set by set_latlng to the locator, and returns it as a string.
Converts the locator set by set_loc to latitude and longitude, and returns them as an array of two values.
The obvious latlng2loc doesn't exist yet. This module was written to serve a specific purpose, so hopefully I'll be adding this shortly.
This module was written by Andy Smith <andy.smith@netprojects.org.uk>.
$Id: Locator.pm 8 2011-01-15 19:23:23Z andys $
(c)2009 Andy Smith (http://andys.org.uk/)
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
3 POD Errors
The following errors were encountered while parsing the POD:
Unknown directive: =over4
'=item' outside of any '=over'
Unknown directive: =item1
To install Ham::Locator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ham::Locator
CPAN shell
perl -MCPAN -e shell install Ham::Locator
For more information on module installation, please visit the detailed CPAN module installation guide.