Dan Horgan > Geo-Coder-Many-0.11 > Geo::Coder::Many::PlaceFinder

Download:
Geo-Coder-Many-0.11.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.02   Source   Latest Release: Geo-Coder-Many-0.4

NAME ^

Geo::Coder::Many::PlaceFinder - Yahoo PlaceFinder plugin for Geo::Coder::Many

VERSION ^

Version 0.02

SYNOPSIS ^

This module adds Yahoo PlaceFinder support to Geo::Coder::Many.

Use as follows:

    use Geo::Coder::Many;
    use Geo::Coder::PlaceFinder;
    use Geo::Coder::Many::PlaceFinder;
    
    my $options = { };
    my $geocoder_multi = Geo::Coder::Many->new( $options );
    my $place_finder = Geo::Coder::PlaceFinder->new( appid => 'YOUR_APP_ID' );
    
    my $place_finder_options = {
        geocoder    => $place_finder,
        daily_limit => 50000,
    };
    
    $geocoder_multi->add_geocoder( $place_finder_options );
    
    my $location = $geocoder_multi->geocode( { location => '82 Clerkenwell Road, London, EC1M 5RF' } );

USAGE POLICY ^

As of writing, Yahoo PlaceFinder allows up to 50000 requests per day. This may change, so you should check the latest documentation to make sure you aren't going to get blocked.

http://developer.yahoo.com/geo/placefinder/

SUBROUTINES/METHODS ^

geocode

This is called by Geo::Coder::Many - it sends the geocoding request (via Geo::Coder::PlaceFinder) and extracts the resulting location, returning it in a standard Geo::Coder::Many::Response.

get_name

Returns the name of the geocoder type - used by Geo::Coder::Many

AUTHOR ^

Dan Horgan, <cpan at lokku.com>

BUGS ^

Please report any bugs or feature requests to bug-geo-coder-multiple-placefinder at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Geo-Coder-Many-PlaceFinder. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc Geo::Coder::Many::PlaceFinder

You can also look for information at:

ACKNOWLEDGEMENTS ^

This module is based on the Geo::Coder::Many::* modules provided with Geo::Coder::Many. It is, of course, useless without Geo::Coder::Many and Geo::Coder::PlaceFinder.

LICENSE AND COPYRIGHT ^

Copyright 2010 Lokku Ltd.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

syntax highlighting: