Group
Extension

Matches 2

Geo-Coder-Google ( A/AR/ARCANEZ/Geo-Coder-Google-0.11_02.tar.gz, ARCANEZ, 2012; MetaCPAN )
Geo-Coder-Google/lib/Geo/Coder/Google/V3.pm ( view source; MetaCPAN )
oder::Google::V3;

use strict;
use warnings;
our $VERSION = '0.11_02';

use Carp;
use Encode;
use JSON;
use HTTP::Request;
use LWP::UserAgent;
use URI;

sub new {
    my($class, %param) = @_;

    my 
ode::encode_utf8($location);
    }

    my $uri = URI->new("http://$self->{host}/maps/api/geocode/json");
    my %query_parameters = (address => $location);
    $query_parameters{language} = $self->{l
croak("Google Maps API returned error: " . $res->status_line);
    }

    my $json = JSON->new->utf8;
    my $data = $json->decode($res->content);

    if ($data->{status} eq 'OVER_QUERY_LIMIT') {
   
Geo-Coder-Google ( A/AR/ARCANEZ/Geo-Coder-Google-0.11_02.tar.gz, ARCANEZ, 2012; MetaCPAN )
Geo-Coder-Google/lib/Geo/Coder/Google/V2.pm ( view source; MetaCPAN )
oder::Google::V2;

use strict;
use warnings;
our $VERSION = '0.11_02';

use Carp;
use Encode;
use JSON;
use HTTP::Request;
use LWP::UserAgent;
use URI;

sub new {
    my($class, %param) = @_;

    my 
URI->new("http://$self->{host}/maps/geo");
    my %query_parameters = (q => $location, output => 'json');
    $query_parameters{hl} = $self->{language} if defined $self->{language};
    $query_paramet
croak("Google Maps API returned error: " . $res->status_line);
    }

    my $json = JSON->new->utf8;
    my $data = $json->decode($res->content);

    my @placemark = @{ $data->{Placemark} || [] };
 

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.