aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2023-06-06 12:41:57 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2023-07-12 19:47:17 +0200
commit61f70340ecd25f18935d8ff2c258f4d42256e760 (patch)
treea42903ad4ca0908ef14c6468ba3c14a74e52f4e8 /apps
parent0f19858a43a18ecc4b4997ff4ff520eabeabfb5c (diff)
downloadnextcloud-server-61f70340ecd25f18935d8ff2c258f4d42256e760.tar.gz
nextcloud-server-61f70340ecd25f18935d8ff2c258f4d42256e760.zip
fix(weather_status): Pass address as param
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/weather_status/lib/Service/WeatherStatusService.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/weather_status/lib/Service/WeatherStatusService.php b/apps/weather_status/lib/Service/WeatherStatusService.php
index 5b1d926f090..b334a5e3ba3 100644
--- a/apps/weather_status/lib/Service/WeatherStatusService.php
+++ b/apps/weather_status/lib/Service/WeatherStatusService.php
@@ -8,7 +8,7 @@ declare(strict_types=1);
* @author Julien Veyssier <eneiluj@posteo.net>
* @author Roeland Jago Douma <roeland@famdouma.nl>
*
- * @license GNU AGPL version 3 or any later version
+ * @license AGPL-3.0-or-later
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
@@ -310,13 +310,14 @@ class WeatherStatusService {
*/
private function searchForAddress(string $address): array {
$params = [
+ 'q' => $address,
'format' => 'json',
'addressdetails' => '1',
'extratags' => '1',
'namedetails' => '1',
'limit' => '1',
];
- $url = 'https://nominatim.openstreetmap.org/search/' . $address;
+ $url = 'https://nominatim.openstreetmap.org/search';
$results = $this->requestJSON($url, $params);
if (count($results) > 0) {
return $results[0];