Skip to content

Commit 3f1d8b6

Browse files
committed
Updated config
1 parent 21768be commit 3f1d8b6

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

config/geocoder.php

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
use Ivory\HttpAdapter\CurlHttpAdapter;
4+
use Geocoder\Provider\BingMaps;
5+
use Geocoder\Provider\FreeGeoIp;
6+
use Geocoder\Provider\GoogleMaps;
7+
38
/**
49
* This file is part of the GeocoderLaravel library.
510
*
@@ -13,8 +18,17 @@
1318
// Providers get called in the chain order given here.
1419
// The first one to return a result will be used.
1520
'providers' => [
16-
'Geocoder\Provider\GoogleMaps' => ['fr-FR', 'France', true],
17-
'Geocoder\Provider\FreeGeoIp' => null,
21+
GoogleMaps::class => [
22+
'en_US',
23+
null,
24+
true,
25+
env('GOOGLE_MAPS_API_KEY'),
26+
],
27+
BingMaps::class => [
28+
'en_US',
29+
env('BING_MAPS_API_KEY'),
30+
],
31+
FreeGeoIp::class => null,
1832
],
19-
'adapter' => 'Ivory\HttpAdapter\Guzzle6HttpAdapter',
33+
'adapter' => CurlHttpAdapter::class,
2034
];

0 commit comments

Comments
 (0)