Name : perl-WWW-Gazetteer
| |
Version : 0.24
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.7.1
| Date : 2023-07-20 15:56:57
|
Group : Development/Libraries/Perl
| Source RPM : perl-WWW-Gazetteer-0.24-lp155.7.1.src.rpm
|
Size : 0.01 MB
| |
Packager : https://www_suse_com/
| |
Summary : Find location of world towns and cities
|
Description :
A gazetteer is a geographical dictionary (as at the back of an atlas). The \'WWW::Gazetteer\' module is a generic interface to the \'WWW::Gazetteer::*\' modules which can return geographical location (longitude, latitude, elevation) for towns and cities in countries in the world.
This is a factory module which dispatches to one of the many \'WWW::Gazetteer::*\' modules. This provides a simple interface and lets the subclasses actually provide the communication to the online gazetteers. You may think of this as the DBI and the subclasses as the DBDs.
Valid subclasses as of this release are: \'WWW::Gazetteer::FallingRain\', \'WWW::Gazetteer::Getty\' and \'WWW::Gazetteer::HeavensAbove\'. To create a gazetteer object, pass the name of the subclass as the first argument to new:
my $g = WWW::Gazetteer->new(\'FallingRain\'); my $g2 = WWW::Gazetteer->new(\'Getty\'); my $g3 = WWW::Gazetteer->new(\'HeavensAbove\');
Calling find($town, $country) will return a list of hashrefs with the country, town, longitude, and latitude information. Additional information such as elevation may also be available. You should check the documentation of your subclass for the particular features that it supports.
my AATTlondons = $g->find(\'London\', \'UK\'); my $london = $londons[0]; print $london->{longitude}, \", \", $london->{latitude}, \"\ \";
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-W/15.5/noarch |