diff --git a/Classes/Div.php b/Classes/Div.php index 6a1497e..184c668 100644 --- a/Classes/Div.php +++ b/Classes/Div.php @@ -264,12 +264,12 @@ public static function searchAddress(&$address, $service = 0) break; case 2: // http://nominatim.openstreetmap.org/ - $query['country'] = $country; $query['email'] = $email; $query['addressdetails'] = 1; $query['format'] = 'jsonv2'; if ($address['type'] == 'structured') { + $query['country'] = $country; if ($address['city'] ?? false) { $query['city'] = $address['city']; }