Skip to content

Commit

Permalink
Check Thanet
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Jan 10, 2018
1 parent 15bbba8 commit abfcd33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Geo/Coder/Free.pm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ my %known_locations = (
'Newport Pagnell, Buckinghamshire, England' => {
'latitude' => 52.08675,
'longitude' => -0.72270
}
},
);

=head1 NAME
Expand Down
5 changes: 4 additions & 1 deletion t/lookup.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use warnings;
use strict;
use Test::Most tests => 65;
use Test::Most tests => 66;
use Test::Number::Delta;
use Test::Carp;

Expand Down Expand Up @@ -131,6 +131,9 @@ LOOKUP: {
delta_within($location->{latitude}, 52.08, 1e-2);
delta_within($location->{longitude}, -0.72, 1e-2);

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

# my $address = $geocoder->reverse_geocode(latlng => '51.50,-0.13');
# like($address->{'city'}, qr/^London$/i, 'test reverse');

Expand Down

0 comments on commit abfcd33

Please sign in to comment.