in reply to geocoding problem
#!/usr/bin/perl use Geo::Coder::Google; use Data::Dumper; use LWP::UserAgent; my $ua = LWP::UserAgent->new(agent => "Geo::Coder::Google/0.01"); $ua->proxy('http', 'http://myproxy.com.au:80'); my $geocoder = Geo::Coder::Google->new(apikey => '{my api key}', ua => + $ua); $geocoder->ua->agent('Mozilla/5.0'); my $location = $geocoder->geocode( location => 'Hollywood and Highla +nd, Los Angeles, CA' ); print Dumper $location;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: geocoding problem
by eserte (Deacon) on Dec 18, 2007 at 00:47 UTC |