Ham::Locator(3pm)

Ham::Locator3pm

Convert between maidenhead locators and latitude/longitude.

Usage

  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

Releases

Unchanged in 2 releases since Debian 12 (Bookworm).

  1. 12–13

Bugs

•

None, hopefully!

From libham-locator-perl 0.1000-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.