Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Geo::GeoNames 0.05

    Download button

    No screenshots available
    Downloads: 323  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.0/5)
    7 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Per Henrik Johansen | More programs
    Perl Artistic License / FREE
    February 25th, 2008, 14:29 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    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->[0]->{name};
    print " Longitude: " . $result->[0]->{lng};
    print " Lattitude: " . $result->[0]->{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.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    geographical queries | GeoNames Web Services | Perl module | geographical | queries | GeoNames

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM