Skip to content

Commit

Permalink
[BUGFIX] do not mix nominatim simple and extended search
Browse files Browse the repository at this point in the history
  • Loading branch information
albig committed May 15, 2024
1 parent 20cbca1 commit 2e526ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Div.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}
Expand Down

0 comments on commit 2e526ff

Please sign in to comment.