Geo-Cloudmade
view release on metacpan or search on metacpan
lib/Geo/Cloudmade.pm view on Meta::CPAN
Usage : my $geo = Geo::Cloudmade->new('your-ip-key');
Function : Constructs and returns a new Geo::Cloudmade object
Returns : a Geo::Cloudmade object
API-KEY : api key provided by Cloudmade. For request api key please visit http://developers.cloudmade.com/projects>
=cut
sub new {
my ($class, $key) = @_;
bless {
key => $key,
ua => LWP::UserAgent->new( keep_alive => 2 ),
error => '',
http_status => 0,
}, $class
}
# internal method
# TODO - add comment
sub call_service {
my ($self, $path, $params, $subdomain) = @_;
my $host = defined $subdomain ? "$subdomain.".HOST : HOST;
( run in 1.939 second using v1.01-cache-2.11-cpan-39bf76dae61 )