File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ use Ivory \HttpAdapter \CurlHttpAdapter ;
4
+ use Geocoder \Provider \BingMaps ;
5
+ use Geocoder \Provider \FreeGeoIp ;
6
+ use Geocoder \Provider \GoogleMaps ;
7
+
3
8
/**
4
9
* This file is part of the GeocoderLaravel library.
5
10
*
13
18
// Providers get called in the chain order given here.
14
19
// The first one to return a result will be used.
15
20
'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 ,
18
32
],
19
- 'adapter ' => ' Ivory\HttpAdapter\Guzzle6HttpAdapter ' ,
33
+ 'adapter ' => CurlHttpAdapter::class ,
20
34
];
You can’t perform that action at this time.
0 commit comments