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

NAME

Geo::Coder::Many::OpenCage - OpenCage plugin for Geo::Coder::Many

VERSION

Version 0.01

SYNOPSIS

This module adds OpenCage Geocoder support to Geo::Coder::Many.

Use as follows:

use Geo::Coder::Many; use Geo::Coder::OpenCage; my $options = { }; my $geocoder_many = Geo::Coder::Many->new( $options ); my $OC = Geo::Coder::OpenCage->new({ api_key => $my_OC_api_key }); my $OC_options = { geocoder => $OC, # This limit should not be taken as necessarily valid. # Please check the OpenCage usage policy. daily_limit => 1000, }; $geocoder_many->add_geocoder( $OC_options ); my $location = $geocoder_many->geocode({ location => '82 Clerkenwell Road, London, EC1M 5RF' });

USAGE POLICY

See http://geocoder.opencagedata.com

SUBROUTINES/METHODS

geocode

This is called by Geo::Coder::Many - it sends the geocoding request (via Geo::Coder::OpenCage) 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