Geo::GeoNamesGeo::GeoNames is a Perl module used to perform geographical queries using GeoNames Web Services. | |
Download |
Geo::GeoNames Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Per Henrik Johansen
- Publisher web site:
- http://search.cpan.org/~perhenrik/Geo-GeoNames-0.05/lib/Geo/GeoNames.pm
Geo::GeoNames Tags
Geo::GeoNames Description
Geo::GeoNames is a Perl module used to perform geographical queries using GeoNames Web Services. SYNOPSIS use Geo::GeoNames; use Data::Dumper; my $geo = new Geo::GeoNames(); # make a query based on placename my $result = $geo->search(q => 'Fredrikstad', maxRows => 2); # print the first result print " Name: " . $result->->{name}; print " Longitude: " . $result->->{lng}; print " Lattitude: " . $result->->{lat}; # Dump the data structure into readable form # This also will show the attributes to each found location Data::Dumper->Dump() # Make a query based on postcode $result = $geo->postalcode_search(postalcode => "1630", maxRows => 3, style => "FULL"); Provides a perl interface to the webservices found at http://ws.geonames.org. That is, given a given placename or postalcode, the module will look it up and return more information (longitude, lattitude, etc) for the given placename or postalcode. Wikipedia lookups are also supported. If more than one match is found, a list of locations will be returned. Requirements: · Perl
Geo::GeoNames Related Software