3 use Test::More tests => 1;
4 use Geo::TomTom::Geocoding;
7 my $key = $ENV{TOMTOM_API_KEY};
8 skip("TOMTOM_API_KEY not set", 1) unless $key;
13 T => 'Music Concourse Drive',
18 my $response = Geo::TomTom::Geocoding->query($test_loc);
19 my ($first_match) = $response->locations;
20 note "Test results:\n".explain $first_match;
21 ok( $first_match->{postcode} =~ /^94118/ );