Subject: | Can't take sqrt of negative number |
To reproduce this bug:
perl -E'use Geo::Calc; say Geo::Calc->new( lat => 4, lon => -70)->distance_to({ lat => 71, lon => 50});'
It gives this error:
Can't take sqrt of -0.050985 at Geo/Calc.pm line 167.