Skip to content

Instantly share code, notes, and snippets.

View gms8994's full-sized avatar

Glen Solsberry gms8994

View GitHub Profile
@sebnow
sebnow / geocode.pl
Created October 22, 2011 07:30
Geocoding in Perl using Google Maps API v3
#!/usr/bin/env perl
use strict;
use warnings;
use Geo::Coder::Google;
my $geocoder = Geo::Coder::Google->new(apiver => 3);
print(join(', ', qw(Address Lattitude Longitude)) . "\n");
while(my $address = <>) {
my $location = $geocoder->geocode(location => $address);
print(join(', ',