Geo-Coder-List
view release on metacpan or search on metacpan
my $location = $geocoderlist->geocode('Silver Spring, MD, USA');
ok(defined($location));
ok(ref($location) eq 'HASH');
delta_within($location->{geometry}{location}{lat}, 38.99, 1e-1);
delta_within($location->{geometry}{location}{lng}, -77.02, 1e-1);
sleep(1); # Don't get blacklisted
my $ua = LWP::UserAgent::Throttled->new();
$ua->throttle({ 'where.desktop.mos.svc.ovi.com' => 1 });
$ua->env_proxy(1);
$geocoderlist->ua($ua);
$location = $geocoderlist->geocode('10 Downing St, London, UK');
ok(defined($location));
ok(ref($location) eq 'HASH');
delta_within($location->{geometry}{location}{lat}, 51.50, 1e-1);
delta_within($location->{geometry}{location}{lng}, -0.13, 1e-1);
$location = $geocoderlist->geocode('Rochester, Kent, England');
( run in 0.289 second using v1.01-cache-2.11-cpan-299005ec8e3 )