Skip to content

Commit

Permalink
Added more libpost testing
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Sep 27, 2018
1 parent 55e03ee commit e2c596b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion t/whosonfirst.t
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ WHOSONFIRST: {
$location = $geocoder->geocode({ location => '106 Tothill St, Minster, Thanet, Kent, England' });
ok(defined($location));
ok(ref($location) eq 'HASH');
delta_within($location->{latitude}, 51.44, 1e-2);
if($libpostal_is_installed) {
delta_within($location->{latitude}, 51.42, 1e-2);
} else {
delta_within($location->{latitude}, 51.44, 1e-2);
}
delta_within($location->{longitude}, 0.80, 1e-2);

$location = $geocoder->geocode(location => '13 Ashburnham Road, St Lawrence, Thanet, Kent, England');
Expand Down

0 comments on commit e2c596b

Please sign in to comment.