Skip to content

Commit

Permalink
There is no G:C:G:V3 key() method
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Mar 21, 2019
1 parent 8a8dc7c commit e9db9ea
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/Geo/Coder/List.pm
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ sub geocode {
$geocoder->{'limit'}--;
}
if(my $regex = $geocoder->{'regex'}) {
print 'Consider ', ref($geocoder->{geocoder}), ": $regex\n" if(DEBUG);
print 'consider ', ref($geocoder->{geocoder}), ": $regex\n" if(DEBUG);
if($location !~ $regex) {
next;
}
Expand All @@ -220,9 +220,6 @@ sub geocode {
die 'lost username' if(!defined($geocoder->username()));
@rc = $geocoder->geocode($location);
} else {
if(ref($geocoder) eq 'Geo::Coder::GooglePlaces::V3') {
print 'key: ', $geocoder->key(), "\n" if(DEBUG);
}
@rc = $geocoder->geocode(%params);
}
};
Expand All @@ -237,7 +234,7 @@ sub geocode {
error => $@
};
CORE::push @{$self->{'log'}}, $log;
Carp::carp(ref($geocoder) . " '$location': $@");
Carp::carp(ref($geocoder), " '$location': $@");
$error = $@;
next;
}
Expand Down

0 comments on commit e9db9ea

Please sign in to comment.