1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Bug: https://github.com/bluefeet/Geo-Distance/pull/9
Bug-Debian: http://bugs.debian.org/735682
From 08e4ef7c2262589c7797d3f3fcdced574e8c3bb9 Mon Sep 17 00:00:00 2001
From: Niko Tyni <ntyni@debian.org>
Date: Fri, 17 Jan 2014 16:04:17 +0200
Subject: [PATCH] Fix incorrect reg_unit() example in SYNOPSIS
As seen later in the documentation, the two argument form
takes the radius first, not the name of the key.
---
lib/Geo/Distance.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/lib/Geo/Distance.pm
+++ b/lib/Geo/Distance.pm
@@ -14,7 +14,7 @@ Geo::Distance - Calculate Distances and
use Geo::Distance;
my $geo = new Geo::Distance;
$geo->formula('hsin');
- $geo->reg_unit( 'toad_hop', 200120 );
+ $geo->reg_unit( 200120, 'toad_hop );
$geo->reg_unit( 'frog_hop' => 6 => 'toad_hop' );
my $distance = $geo->distance( 'unit_type', $lon1,$lat1 => $lon2,$lat2 );
my $locations = $geo->closest(
|