Geo::Query - Perl extension for querying geo related data from different sources.
use Geo::Query;
Library. This will be the container for future Geo::Query::Any modules.
$geo = Geo::Query->new(); $d = $geo->distance( lat1 => 47.463173, lng1 => 9.0005, lat2 => 47.499879, lng2 => 8.72616 ); print "Distance is ", $d->{'km'}, " kilometers\n";
This returns a rough estimation of the distance between two points. For more possibilities in calculating distances please take a look on Geo::Distance - Calculate Distances and Closest Locations.
Geo::Query::LatLong
http://search.cpan.org/dist/Geo-Query-LatLong/lib/Geo/Query/LatLong.pm
Calculates distances. Installs related Geo-Quey modules. Returns information about the Geo-Query modules.
None by default.
http://www.xn--schrsoft-2za.ch
http://meta.pgate.net/perl-modules/
http://www.movable-type.co.uk/scripts/latlong.html
http://search.cpan.org/dist/Geo-Distance/Distance.pm
Reto Schaer, <reto@localdomain>
Copyright (C) 2007 - 2010 by reto
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.x or, at your option, any later version of Perl 5 you may have available.
To install Geo::Query, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::Query
CPAN shell
perl -MCPAN -e shell install Geo::Query
For more information on module installation, please visit the detailed CPAN module installation guide.