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,