Geo::Coder::Cloudmade - Geocode addresses with the Cloudmade API


Geo-Coder-Cloudmade documentation  | view source Contained in the Geo-Coder-Cloudmade distribution.

Index


NAME

Top

Geo::Coder::Cloudmade - Geocode addresses with the Cloudmade API

VERSION

Top

Version 0.2

SYNOPSIS

Top

Provides a thin Perl interface to the Cloudmade Geocoding API.

    use Geo::Coder::Cloudmade;

    my $geocoder = Geo::Coder::Cloudmade->new( apikey => 'my_app' );
    my $location = $geocoder->geocode( { location => '1370 Willow Road, 2nd Floor, Menlo Park, CA 94025 USA' } );

OFFICIAL API DOCUMENTATION

Top

Read more about the API at http://developers.cloudmade.com/.

METHOD

Top

new

Constructs a new Geo::Coder::Cloudmade object and returns it. Requires a Cloudmade api key as an argument.

  KEY                   VALUE
  -----------           --------------------
  apikey                Cloudmade API key




geocode

Takes a location in a hashref as an argument and returns the list of matching coordinates for the specified location.

AUTHOR

Top

Alistair Francis, http://search.cpan.org/~friffin/

COPYRIGHT AND LICENSE

Top


Geo-Coder-Cloudmade documentation  | view source Contained in the Geo-Coder-Cloudmade distribution.