Skip to content

Commit

Permalink
UPDATE utilize updated methods for new geocoder
Browse files Browse the repository at this point in the history
  • Loading branch information
muskie9 committed Mar 20, 2024
1 parent 564348e commit a8114b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/LocatorController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Check warning on line 319 in src/pages/LocatorController.php

View check run for this annotation

Codecov / codecov/patch

src/pages/LocatorController.php#L318-L319

Added lines #L318 - L319 were not covered by tests

return new ArrayData([
"Lat" => $lat,
Expand Down

0 comments on commit a8114b2

Please sign in to comment.