Skip to content

Commit

Permalink
[FIX] Remove WIP Code
Browse files Browse the repository at this point in the history
  • Loading branch information
erkurn committed Sep 27, 2022
1 parent 1e0a5d7 commit 0e9f0e1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Forms/Components/AddressPicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Erkurn\FilamentAddressPicker\Forms\Components;

use Cache\Adapter\PHPArray\ArrayCachePool;
use Filament\Forms\Components\Concerns\HasPlaceholder;
use Filament\Forms\Components\Field;
use Geocoder\Model\AddressCollection;
Expand Down Expand Up @@ -88,13 +87,8 @@ public function getAddresses() : \Geocoder\Collection
{
$httpClient = new Client();
$provider = new GoogleMaps($httpClient, null, $this->getApiKey());
$cachedProvider = new ProviderCache(
$provider,
new ArrayCachePool(),
60 * 60 * 24
);

$geocoder = new \Geocoder\StatefulGeocoder($cachedProvider, 'en');
$geocoder = new \Geocoder\StatefulGeocoder($provider, 'en');
return $geocoder->reverseQuery(ReverseQuery::fromCoordinates(
data_get($this->getState(), 'lat'),
data_get($this->getState(), 'lng')
Expand Down

0 comments on commit 0e9f0e1

Please sign in to comment.