diff options
author | Sean Leavey <gpg@attackllama.com> | 2022-03-24 17:57:11 +0300 |
---|---|---|
committer | Sean Leavey <gpg@attackllama.com> | 2022-03-24 17:57:11 +0300 |
commit | d2e5a531645d0f7003fee8dcb0e2afc115610abd (patch) | |
tree | 33f2959f452bdb0da8581115fc3964754b176002 /lib | |
parent | 1acacf7e08f4dbad43dc4974d4376e2768b8ba81 (diff) |
Remove blank lines in address before Nominatim query to attempt to improve chance of a match
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Service/AddressService.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Service/AddressService.php b/lib/Service/AddressService.php index 91852ae6..79924a52 100644 --- a/lib/Service/AddressService.php +++ b/lib/Service/AddressService.php @@ -171,6 +171,9 @@ class AddressService { if (count($splitted_adr) > 2) { array_shift($splitted_adr); } + + // remove blank lines (#706) + $splitted_adr = array_filter(array_map('trim', $splitted_adr)); $query_adr = implode(', ', $splitted_adr); $result_json = @file_get_contents( |