From 10b70f0c5391b51660a6357888779576dc2fc174 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Atoch?= Date: Wed, 23 Jul 2025 14:06:20 -0400 Subject: [PATCH] Bugfix: weather geolocation not working when there are multiple results. --- Helpers/Weather.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Helpers/Weather.js b/Helpers/Weather.js index 538ade2..52b83eb 100644 --- a/Helpers/Weather.js +++ b/Helpers/Weather.js @@ -1,5 +1,5 @@ function fetchCoordinates(city, callback, errorCallback) { - var geoUrl = "https://geocoding-api.open-meteo.com/v1/search?name=" + encodeURIComponent(city) + "&count=1&language=en&format=json"; + var geoUrl = "https://geocoding-api.open-meteo.com/v1/search?name=" + encodeURIComponent(city) + "&language=en&format=json"; var xhr = new XMLHttpRequest(); xhr.onreadystatechange = function() { if (xhr.readyState === XMLHttpRequest.DONE) {