Open nigelhorne opened 3 years ago
In the meanwhile the tests fail with "403 Forbidden" errors. It seems that the service provider has shutdown the v3 API. The new v4 API needs an API key.
We own Geocode.Farm, we have not Shutdown the v3 service, however it will require you to have a key, which you can signup for free to get. Simply providing the API key will allow you to still access the same old v3 or the new v4 API. The new v4 has more APIs available such as timezones, local info, etc. and is being actively maintained.
The code should eventually be updated to use the v4 API, but as for now it will still work if you provide a VALID v4 API key on the v3 API. Billing is now all integrated for v3 and v4, so a key for one is a key for both, a package for one is a package for both.
As per documentation, key should be provided like this:
$geocoder = Geo::Coder::GeocodeFarm->new(
key => '3d517dd448a5ce1c2874637145fed69903bc252a',
url => 'https://www.geocode.farm/v3/',
ua => HTTP::Tiny->new,
parser => JSON->new->utf8,
raise_failure => 1,
);
Perhaps the website API has changed?
Running Build test for DEXTER/Geo-Coder-GeocodeFarm-0.0402.tar.gz t/010_use.t ....................... ok t/050_geocode.t ................... ok t/060_geocode_failure.t ........... ok t/065_geocode_utf8.t .............. ok Subroutine is_success redefined at /home/opc/perl5/perlbrew/perls/perl-5.34.0/lib/site_perl/5.34.0/HTTP/Response.pm line 218. t/055_geocode_internet.t .......... ok t/070_reverse_geocode.t ........... ok Subroutine is_success redefined at /home/opc/perl5/perlbrew/perls/perl-5.34.0/lib/site_perl/5.34.0/HTTP/Response.pm line 218. t/080_reverse_geocode_failure.t ... ok GeocodeFarm API returned status: FAILED, NO_RESULTS at t/075_reverse_geocode_internet.t line 20.
Looks like your test exited with 255 just after 2.
t/075_reverse_geocode_internet.t .. Dubious, test returned 255 (wstat 65280, 0xff00) Failed 2/4 subtests