NAME

Geo::Query::LatLong - Perl module to query latitude and longitude from a city.

SYNOPSIS

use Geo::Query::LatLong;

$geo = Geo::Query::LatLong->new( debug => 0 );

DESCRIPTION

Query latitude and longitude from any city in any country.

Query example

  use Geo::Query::LatLong;

  my $CITY = $ARGV[0] || 'Zurich';

  my $res = $geo->query( city => $CITY, country_code => 'SZ' );

  print "Latitude and longitude of $CITY: ",
		$res->{'lat'}, ' / ', $res->{'lng'}, "\n";

  # List all results
  foreach (keys %{$res}) {
	print "$_ = ", $res->{$_}, "\n";
  }

EXPORT

None by default.

SEE ALSO

http://www.infocopter.com/perl/modules/ http://meta.pgate.net/perl-modules/

AUTHOR

Reto Schaer, <retoh@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2007 by Reto Schaer

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.6 or, at your option, any later version of Perl 5 you may have available.

http://www.infocopter.com/perl/licencing.html