Skip to content

Commit

Permalink
Merge branch 'main' of github.com:erkurn/filament-address-picker
Browse files Browse the repository at this point in the history
  • Loading branch information
erkurn committed Sep 27, 2022
2 parents 1b52d83 + 589804e commit a905efc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to `filament-address-picker` will be documented in this file.

## v1.1.1 - 2022-09-27

**Full Changelog**: https://github.com/erkurn/filament-address-picker/compare/v1.1.0...v1.1.1

## v1.1.0 - 2022-09-27

**Full Changelog**: https://github.com/erkurn/filament-address-picker/compare/v1.0.0...v1.1.0
Expand Down
2 changes: 1 addition & 1 deletion src/Forms/Components/AddressPicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Filament\Forms\Components\Concerns\HasPlaceholder;
use Filament\Forms\Components\Field;
use Geocoder\Provider\Cache\ProviderCache;
use Geocoder\Provider\GoogleMaps\GoogleMaps;
use Geocoder\Query\ReverseQuery;
use GuzzleHttp\Client;
Expand Down Expand Up @@ -88,6 +87,7 @@ public function getAddresses(): \Geocoder\Collection
$provider = new GoogleMaps($httpClient, null, $this->getApiKey());

$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 a905efc

Please sign in to comment.