Skip to content

Commit

Permalink
OSM gives in consistent country name for USA
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Dec 20, 2020
1 parent 13fd913 commit abc66f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/osm.t
Expand Up @@ -77,7 +77,7 @@ OSM: {
like($geocoderlist->reverse_geocode('39.00,-77.10'), qr/Bethesda/i, 'test reverse geocode');

ok($location->{address}{country_code} eq 'us');
like($location->{address}{country}, qr/United States of America$/, 'check USA');
like($location->{address}{country}, qr/^United States/, 'check USA');

my @locations = $geocoderlist->geocode('Vessels, Misc Ships at Sea or Abroad, England');
my $count = scalar(@locations);
Expand Down

0 comments on commit abc66f3

Please sign in to comment.