Group
Extension

Matches 1

Geo-Coder-RandMcnally ( G/GR/GRAY/Geo-Coder-RandMcnally-0.01.tar.gz, GRAY, 2011; MetaCPAN )
Geo-Coder-RandMcnally/lib/Geo/Coder/RandMcnally.pm ( view source; MetaCPAN )
ckage Geo::Coder::RandMcnally;

use strict;
use warnings;

use Carp qw(croak);
use Encode ();
use JSON;
use LWP::UserAgent;
use URI;

our $VERSION = '0.01';
$VERSION = eval $VERSION;

sub new {
    my
 return unless $res->is_success;

    # Change the content type of the response from 'application/json' so
    # HTTP::Message will decode the character encoding.
    $res->content_type('text/plain');

    my $content = $res->decoded_content;
    return unless $content;

    my $data = eval { from_json($content) };
    return unless $data;

    my @results = @{ $data->{geocodedLocation} || [] };
  

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