Closed mbukovac closed 6 years ago
Hi @mbukovac, the following configuration should do the trick:
'providers' => [
GoogleMaps::class => [
env('GOOGLE_MAPS_LOCALE', 'en-US'),
env('GOOGLE_MAPS_API_KEY'),
],
Chain::class => [
GoogleMaps::class => [
env('GOOGLE_MAPS_LOCALE', 'en-US'),
env('GOOGLE_MAPS_API_KEY'),
],
Yandex::class => [],
GeoPlugin::class => [],
],
],
Please feel free to re-open if that does not work for you. :)
General Information
GeocoderLaravel Version: Laravel Version: 5.6.14 PHP Version: 7.2.3 Operating System and Version: Vagrant/Homestead
Issue Description
When trying to use
I get an error:
As listed in the issue #118, the solution you stated was
How would I do this?
Specifically, I am trying to use GoogleMaps and Yandex, so my geocoder.php looks like this:
Without using(), I can geocode with both GoogleMaps or Yandex, no issues with using either one.
Thanks for the help, much appreciated!