CGI-Wiki-Plugin-Locator-UTM
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/CGI/Wiki/Plugin/Locator/UTM.pm view on Meta::CPAN
# Or in metres between a node and a point.
my $distance = $locator->distance(from_lat => 51.507497,
from_long => -0.271797,
to_node => "Duke of Cambridge",
unit => "metres" );
Defaults to kilometres if C<unit> is not supplied or is not recognised.
Recognised units at the moment: C<metres>, C<kilometres>.
Returns C<undef> if one of the endpoints does not exist, or does not
have both co-ordinates defined.
B<Note:> Works to the nearest metre. Well, actually, calls C<int> and
rounds down, but if anyone cares about that they can send a patch.
=cut
sub distance {
my ( $self, %args ) = @_;
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.130 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )