Geo::Coder::Many::SimpleGeo - SimpleGeo plugin Geo::Coder::Many
Version 0.01
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' } );
please see http://search.cpan.org/dist/Geo-Coder-SimpleGeo/ and http://simplegeo.com/docs/
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.
Returns the name of the geocoder type - used by Geo::Coder::Many
To install Geo::Coder::Many, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::Coder::Many
CPAN shell
perl -MCPAN -e shell install Geo::Coder::Many
For more information on module installation, please visit the detailed CPAN module installation guide.