diff --git a/modules/geolocation_address/src/Controller/GeocoderController.php b/modules/geolocation_address/src/Controller/GeocoderController.php index 5f6318e207235dd06be56cccb9b20b24e18f40f1..9e2e886e298abbe74448f59d2423811bdfb1ffe8 100644 --- a/modules/geolocation_address/src/Controller/GeocoderController.php +++ b/modules/geolocation_address/src/Controller/GeocoderController.php @@ -68,7 +68,7 @@ class GeocoderController extends ControllerBase { $geocoded_result = $geocoder->geocode($data['address']); } elseif (is_array($data['address'])) { - $geocoded_result = $geocoder->geocode(new GeolocationAddress( + $geocoded_result = $geocoder->geocodeAddress(new GeolocationAddress( organization: $data['address']['organization'] ?? '', addressLine1: $data['address']['addressLine1'] ?? '', addressLine2: $data['address']['addressLine2'] ?? '',