From 23e35f0198d8ccf124c1743e6790d4aed8245975 Mon Sep 17 00:00:00 2001 From: Alexander Bigga Date: Wed, 15 May 2024 13:20:33 +0200 Subject: [PATCH] [BUGFIX] do not mix nominatim simple and extended search --- Classes/Div.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']; }