From a8114b2c4a7b6f4469da185b316400f84d19cc2d Mon Sep 17 00:00:00 2001 From: Nic Horstmeier Date: Wed, 20 Mar 2024 10:09:00 -0500 Subject: [PATCH] UPDATE utilize updated methods for new geocoder --- src/pages/LocatorController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/LocatorController.php b/src/pages/LocatorController.php index 5d82790..bb912f3 100644 --- a/src/pages/LocatorController.php +++ b/src/pages/LocatorController.php @@ -315,8 +315,8 @@ public function getAddressSearchCoords() if (class_exists(GoogleGeocoder::class)) { $geocoder = new GoogleGeocoder($this->request->getVar($addressVar)); $response = $geocoder->getResult(); - $lat = $response->getLatitude(); - $lng = $response->getLongitude(); + $lat = $response->getCoordinates()->getLatitude(); + $lng = $response->getCoordinates()->getLongitude(); return new ArrayData([ "Lat" => $lat,