Geo-MedianCenter-XS
view release on metacpan or search on metacpan
lib/Geo/MedianCenter/XS.pm view on Meta::CPAN
an array of arrays of latitude and longitude in decimal degrees and
optionally a weight; C<tolerance>, a number in meters, if the iterative
algorithm improves its approximation by at most this value, the function
will return; C<max_iterations>, the function will return after this
many attempts to refine the approximation. Returns the latitude and
longitude in decimal degrees.
=item haversine_distance_dec($lat1, $lon1, $lat2, $long2)
Computes the distance between the two points using the Haversine
formula in meters. Latitude and longitude are specified in decimal
degrees.
=item haversine_distance_rad($lat1, $lon1, $lat2, $long2)
Computes the distance between the two points using the Haversine
formula in meters. Latitude and longitude are specified in radians.
=back
=head2 EXPORT
The function C<median_center> is exported by default, the other
functions on request.
=head1 BUG REPORTS
( run in 0.462 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )