Vincent Launchbury > Geo-Coder-Many-0.3 > Geo::Coder::Many::Ovi

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

Dependencies

Annotate this POD

CPAN RT

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

NAME ^

Geo::Coder::Many::Ovi - Ovi plugin Geo::Coder::Many

VERSION ^

Version 0.02

SYNOPSIS ^

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

Use as follows:

    use Geo::Coder::Many;
    use Geo::Coder::Ovi;
    
    my $options = { };
    my $geocoder_many = Geo::Coder::Many->new( $options );
    my $GCO = Geo::Coder::Ovi->new();
    
    my $options = {
        geocoder    => $GCO,
    };
    
    $geocoder_many->add_geocoder( $options );
    
    my $location = $geocoder_many->geocode( 
        {
            location => 'London EC1M 5RF, United Kingdom'
        }
    );

MORE INFO ^

please see http://search.cpan.org/dist/Geo-Coder-Ovi/

SUBROUTINES/METHODS ^

geocode

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

Note: the precision score is set based on the size of the bounding box returned. Not all queries seem to return a bounding box. In that case precision in undef

get_name

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

syntax highlighting: