You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was getting no results using the default httpclient. so i am trying guzzle.
use GuzzleHttp\Client as GuzzleClient;
use Geocoder\Provider\Chain;
use Geocoder\Provider\BingMaps;
use Geocoder\Provider\FreeGeoIp;
use Geocoder\Provider\GoogleMaps;
use Geocoder\Provider\MaxMindBinary;
return [
'providers' => [
/*
Chain::class => [
GoogleMaps::class => [
'en',
'us',
true,
env('GOOGLE_MAPS_API_KEY'),
],
FreeGeoIp::class => [],
],
BingMaps::class => [
'en-US',
env('BING_MAPS_API_KEY'),
],
*/
GoogleMaps::class => [
'en-US',
'us',
true,
env('GOOGLE_MAPS_API_KEY'),
],
],
'adapter' => GuzzleClient::class,
];
error response:
TypeError: Argument 1 passed to Geocoder\Provider\GoogleMaps::__construct() must be an instance of Ivory\HttpAdapter\HttpAdapterInterface, instance of GuzzleHttp\Client given
/Users/Scott/Code/IOTM/vendor/willdurand/geocoder/src/Geocoder/Provider/GoogleMaps.php:59
The text was updated successfully, but these errors were encountered:
You need to use one of the included Ivory HTTP adapters. In this case you would want to use Ivory\HttpAdapter\Guzzle6HttpAdapter. If you continue to have issues with this, please update here and reopen this issue. Hope this gets you and running, though. :)
I was getting no results using the default httpclient. so i am trying guzzle.
error response:
The text was updated successfully, but these errors were encountered: