The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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.

METHODS

$locator->loc2latlng

Converts the locator set by set_loc to latitude and longitude, and returns them as an array of two values.

CAVEATS

The obvious latlng2loc doesn't exist yet. This module was written to serve a specific purpose, so hopefully I'll be adding this shortly.

BUGS

This module was written by Andy Smith <andy.smith@netprojects.org.uk>.

COPYRIGHT

$Id: Locator.pm 4 2010-12-17 20:55:07Z 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 41:

Unknown directive: =over4

Around line 43:

'=item' outside of any '=over'

Around line 220:

Unknown directive: =item1