From 9ac973c5a95a743dd9185b92e6d32d47ebb571b1 Mon Sep 17 00:00:00 2001 From: Jason Irish Date: Fri, 11 Nov 2022 16:13:53 -0600 Subject: [PATCH] BUGFIX coords vars --- src/Page/LocatorController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Page/LocatorController.php b/src/Page/LocatorController.php index 4c13c88..85c84d5 100644 --- a/src/Page/LocatorController.php +++ b/src/Page/LocatorController.php @@ -282,8 +282,8 @@ public function getAddressSearchCoords() if (class_exists(GoogleGeocoder::class)) { $geocoder = new GoogleGeocoder($this->request->getVar($addressVar)); $response = $geocoder->getResult(); - $this->owner->Lat = $response->getCoordinates()->getLatitude(); - $this->owner->Lng = $response->getCoordinates()->getLongitude(); + $lat = $this->owner->Lat = $response->getCoordinates()->getLatitude(); + $lng = $this->owner->Lng = $response->getCoordinates()->getLongitude(); return new ArrayData([ "Lat" => $lat,