nfo => 'countryInfo?',
earthquakes => 'earthquakesJSON?',
find_nearby_placename => 'findNearbyPlaceName?',
find_nearby_postalcodes
}
$i++;
}
}
return \@result;
}
sub _parse_json_result {
require JSON;
my( $self, $geonamesresponse ) = @_;
my @result;
return JSON->new->utf8->decode($geonamesresponse);
}
sub _parse
pe to determine which parse method to use.
# we accept text/xml, text/plain (how do see if it is JSON or not?)
my $mime_type = $response->headers->content_type || '';
my $body = '';
if ($response