From 6e06c9c4897f05be3c0330e2796e613c69b7ff81 Mon Sep 17 00:00:00 2001 From: Svilen Markov <7613769+svilenmarkov@users.noreply.github.com> Date: Sat, 26 Apr 2025 18:12:25 +0100 Subject: [PATCH] Bump results count to 20 #615 --- internal/glance/widget-weather.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/glance/widget-weather.go b/internal/glance/widget-weather.go index 9d53cd6..79861d0 100644 --- a/internal/glance/widget-weather.go +++ b/internal/glance/widget-weather.go @@ -170,7 +170,7 @@ func parsePlaceName(name string) (string, string) { func fetchOpenMeteoPlaceFromName(location string) (*openMeteoPlaceResponseJson, error) { location, area := parsePlaceName(location) - requestUrl := fmt.Sprintf("https://geocoding-api.open-meteo.com/v1/search?name=%s&count=10&language=en&format=json", url.QueryEscape(location)) + requestUrl := fmt.Sprintf("https://geocoding-api.open-meteo.com/v1/search?name=%s&count=20&language=en&format=json", url.QueryEscape(location)) request, _ := http.NewRequest("GET", requestUrl, nil) responseJson, err := decodeJsonFromRequest[openMeteoPlacesResponseJson](defaultHTTPClient, request) if err != nil {