GIS-Distance
view release on metacpan or search on metacpan
- Does not accept [Geo::Point](https://metacpan.org/pod/Geo%3A%3APoint) objects. Only decimal latitude and longitude
pairs.
- Does not return a [Class::Measure](https://metacpan.org/pod/Class%3A%3AMeasure) object. Instead kilometers are always
returned.
- Does no argument checking.
- Does not support formula arguments which are supported by at least the
[GIS::Distance::GeoEllipsoid](https://metacpan.org/pod/GIS%3A%3ADistance%3A%3AGeoEllipsoid) formula.
Calling this gets you pretty close to the fastest bare metal speed you can get.
The speed improvements of calling this is noticeable over hundreds of thousands of
iterations only and you've got to decide if its worth the safety and features
you are dropping. Read more in the ["SPEED"](#speed) section.
# ARGUMENTS
```perl
my $gis = GIS::Distance->new( $formula );
```
When you call `new()` you may pass a partial or full formula class name as the
first argument. The default is `Haversive`.
author/bench view on Meta::CPAN
--geo
L<Geo::Distance> and/or L<Geo::Distance::XS> formulas will be
included.
=head2 iters
--iters=100
-i 10000000
The number of iterations to benchmark each formula against.
The default is C<5,000,000>.
=head2 dry-run
--dry-run
-n
Lists all the benchmarks which would be run, but does not run them.
lib/GIS/Distance.pm view on Meta::CPAN
=item *
Does not support formula arguments which are supported by at least the
L<GIS::Distance::GeoEllipsoid> formula.
=back
Calling this gets you pretty close to the fastest bare metal speed you can get.
The speed improvements of calling this is noticeable over hundreds of thousands of
iterations only and you've got to decide if its worth the safety and features
you are dropping. Read more in the L</SPEED> section.
=head1 ARGUMENTS
my $gis = GIS::Distance->new( $formula );
When you call C<new()> you may pass a partial or full formula class name as the
first argument. The default is C<Haversive>.
If you pass a partial name, as in:
( run in 0.561 second using v1.01-cache-2.11-cpan-5511b514fd6 )