-
-
16 Jan 2011 15:42:55 UTC
- Distribution: Ham-Locator
- Module version: 0.1000
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (1)
- Testers (1743 / 1 / 105)
- Kwalitee
Bus factor: 0- 82.73% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (3.65KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Ham::Locator - Convert between Maidenhead locators and latitude/longitude.
SYNOPSIS
use Ham::Locator; my $m = new Ham::Locator; $m->set_loc('IO93lo'); my ($latitude, $longitude) = $m->loc2latlng;
DEPENDENCIES
Carp - for error handling
Class::Accessor - for accessor method generation
CONSTRUCTORS
Locator->new
Creates a new
Ham::Locator
object.ACCESSORS
$locator->set_loc(locator)
Sets the locator to use for conversion to latitude and longitude.
$locator->set_latlng((latitude, longitude))
Sets the longitude and latitude to use for conversion to the locator.
$locator->set_precision(precision)
Sets the number of characters of the locator reference to return when calling latlng2loc.
METHODS
$locator->latlng2loc
converts the latitude and longitude set by set_latlng to the locator, and returns it as a string.
$locator->loc2latlng
Converts the locator set by set_loc to latitude and longitude, and returns them as an array of two values.
CAVEATS
BUGS
This module was written by Andy Smith <andy.smith@netprojects.org.uk>.
COPYRIGHT
$Id: Locator.pm 10 2011-01-16 15:36:53Z 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:
- Around line 42:
Unknown directive: =over4
- Around line 44:
'=item' outside of any '=over'
- Around line 293:
Unknown directive: =item1
Module Install Instructions
To install Ham::Locator, copy and paste the appropriate command in to your terminal.
cpanm Ham::Locator
perl -MCPAN -e shell install Ham::Locator
For more information on module installation, please visit the detailed CPAN module installation guide.