Skip to content

Commit

Permalink
Data move
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Oct 29, 2018
1 parent 13d223e commit 1e6acac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion createdatabase.PL
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,6 @@ if(my $oa = $ENV{'OPENADDR_HOME'}) {
# next if(!defined($data));
my $rowcache = $sth->fetchall_arrayref(undef, 10_000);
while(my $aref = shift(@{$rowcache})) {
die if($state ne uc($components[1]));
if(scalar(@{$rowcache}) == 0) {
$rowcache = $sth->fetchall_arrayref(undef, 10_000);
}
Expand Down
5 changes: 3 additions & 2 deletions t/whosonfirst.t
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ WHOSONFIRST: {
delta_within($location->{latitude}, 39.06, 1e-2);
delta_within($location->{longitude}, -77.12, 1e-2);

# https://spelunker.whosonfirst.org/id/772834215/
$location = $geocoder->geocode('Rock Bottom, Norfolk Ave, Bethesda, MD, USA');
ok(defined($location));
ok(ref($location) eq 'HASH');
Expand Down Expand Up @@ -89,8 +90,8 @@ WHOSONFIRST: {
$location = $geocoder->geocode(location => '13 Ashburnham Road, St Lawrence, Thanet, Kent, England');
ok(defined($location));
ok(ref($location) eq 'HASH');
delta_within($location->{latitude}, 51.36, 1e-2);
delta_within($location->{longitude}, 1.42, 1e-2);
delta_within($location->{latitude}, 51.33, 1e-2);
delta_within($location->{longitude}, 1.41, 1e-2);

$location = $geocoder->geocode('Wickhambreaux, Kent, England');
ok(defined($location));
Expand Down

0 comments on commit 1e6acac

Please sign in to comment.