Skip Menu |

This queue is for tickets about the Geo-Google CPAN distribution.

Report information
The Basics
Id: 35581
Status: new
Priority: 0/
Queue: Geo-Google

People
Owner: Nobody in particular
Requestors: andy [...] ultranerds.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Geo::Google - won't work?
Date: Fri, 2 May 2008 14:26:03 +0100
To: bug-Geo-Google [...] rt.cpan.org
From: "Andy Newby" <andy.newby [...] gmail.com>
Hi, First of all - thanks for writing/contributing to this module - I'm hoping it will help fill a big feature hole in my site (atm, I can only pin point down to the persona city+country). Ideally, because its a business directory listing site - I need to go a lot closer, i.e their address =) I've tried a VERY basic version of the sampel code - but it refuses to work :/ #!/usr/bin/perl use strict; use Data::Dumper; use Geo::Google; #Allen's office my $gonda_addr = '695 Charles E Young Dr S, Los Angeles, Los Angeles, California 90024, United States'; #Instantiate a new Geo::Google object. my $geo = Geo::Google->new(); #Create Geo::Google::Location objects. These contain #latitude/longitude coordinates, along with a few other details #about the locus. my ( $gonda ) = $geo->location( address => $gonda_addr ); print $gonda->latitude, " / ", $gonda->longitude, "\n"; I get the following error: linkssql@undevmac cgi-bin $ perl test.cgi Can't call method "latitude" on an undefined value at test.cgi line 18. Line 18 is: print $gonda->latitude, " / ", $gonda->longitude, "\n"; Don't spose you could shed any light on why I would get that error? :/ TIA! -- Andy Newby andy@ultranerds.com