The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Geo::Coder::Many::SimpleGeo - SimpleGeo plugin Geo::Coder::Many

VERSION

Version 0.01

SYNOPSIS

This module adds SimpleGeo support to Geo::Coder::Many.

Use as follows:

    use Geo::Coder::Many;
    use Geo::Coder::SimpleGeo;
    
    my $options = { };
    my $geocoder_many = Geo::Coder::Many->new( $options );
    my $SG = Geo::Coder::SimpleGeo->new(
                 #debug  => 1,
                 key    => 'Your Key',
                 secret => 'Your Secret',
             );
    
    my $options = {
        geocoder    => $SG,
    };
    
    $geocoder_many->add_geocoder( $options );
    
    my $location = $geocoder_many->geocode( 
        {
            location => '82 Clerkenwell Road, London, EC1M 5RF'
        }
    );

MORE INFO

please see http://search.cpan.org/dist/Geo-Coder-SimpleGeo/ and http://simplegeo.com/docs/

SUBROUTINES/METHODS

geocode

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

NOTE: unclear to me what the SimpleGeo precision field means, and I'm thus unable to convert it into a meaningful number. Currently response is thus undef. Also, SimpleGeo does not return the country, thus that key's value is undef. Hopefully both of these can be addressed in future versions.

get_name

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