Subject: | destination_point_hs isn't correct |
Take this code:
use strict;
use warnings;
use Geo::Calc;
use Data::Dumper;
my $gc = Geo::Calc->new(
lat => '51.483435',
lon => '-3.213501',
units => 'm',
);
print Dumper($gc->destination_point_hs(0, 1000)); # 1km north
This prints:
$VAR1 = {
'lat' => '51.492428',
'lon' => '-0.056086'
};
This result is not what I expected. I expected a point roughly 1km north of {lat => '51.483435', lon => '-3.213501'}. The point I got is roughly 244km east of the origin point.