Reto Schär > Geo-Query-0.04 > Geo::Query

Download:
Geo/Geo-Query-0.04.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.04   Source  

NAME ^

Geo::Query - Perl extension for querying geo related data from different sources.

SYNOPSIS ^

  use Geo::Query;

Library. This will be the container for future Geo::Query::Any modules.

Calculating distance

  $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.

Related Modules ^

Geo::Query::LatLong

  http://search.cpan.org/dist/Geo-Query-LatLong/lib/Geo/Query/LatLong.pm

DESCRIPTION ^

Calculates distances. Installs related Geo-Quey modules. Returns information about the Geo-Query modules.

EXPORT

None by default.

SEE ALSO ^

Geo::Query::LatLong

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

AUTHOR ^

Reto Schaer, <reto@localdomain>

COPYRIGHT AND LICENSE ^

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.

syntax highlighting: