Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Lite(3)		      User Contributed Perl Documentation	       Lite(3)

NAME
       GIS::Distance::Lite - Calculate geographic distances between
       coordinates in geodetic WGS84 format.

SYNOPSIS
	 use GIS::Distance::Lite qw(distance);

	 my $distanceInMeters =	distance($lat1,	$lon1 => $lat2,	$lon2);

DESCRIPTION
       The module provides a method to calculate geographic distances between
       coordinates in geodetic WGS84 format using the Haversine	formula.

       It is similar to	GIS::Distance, but without the extra bells and
       whistles	and without the	additional dependencies. Same great taste,
       less filling.  It exists	for those who cannot, or prefer	not to install
       Moose and its dependencies.

       my $distanceInMeters = GIS::Distance::Lite::distance($lat1, $lon1 =>
       $lat2, $lon2);
	 Calculate distance between two	set of coordinates.

	 Parameters:

	  $latitude1  (number)
	  $longitude1 (number)
	  $latitude2  (number)
	  $longitude2 (number)

	 Example:

	  my $distanceInMeters = GIS::Distance::Lite::distance(59.26978, 18.03948 => 59.27200, 18.05375);

	 Returns:

	 the distance in meters;

SEE ALSO
       Inspired	by: GIS::Distance

       Haversine formula: http://en.wikipedia.org/wiki/Haversine_formula

COPYRIGHT
       This library is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

AUTHORS
       Author: Johan Beronius <johanb@athega.se>, 2010.	http://www.athega.se/

POD ERRORS
       Hey! The	above document had some	coding errors, which are explained
       below:

       Around line 70:
	   You forgot a	'=back'	before '=head1'

perl v5.24.1			  2010-05-13			       Lite(3)

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO | COPYRIGHT | AUTHORS | POD ERRORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=GIS::Distance::Lite&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help