Skip to content

Commit 6e06c9c

Browse files
committed
Bump results count to 20 #615
1 parent 1862858 commit 6e06c9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/glance/widget-weather.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ func parsePlaceName(name string) (string, string) {
170170

171171
func fetchOpenMeteoPlaceFromName(location string) (*openMeteoPlaceResponseJson, error) {
172172
location, area := parsePlaceName(location)
173-
requestUrl := fmt.Sprintf("https://geocoding-api.open-meteo.com/v1/search?name=%s&count=10&language=en&format=json", url.QueryEscape(location))
173+
requestUrl := fmt.Sprintf("https://geocoding-api.open-meteo.com/v1/search?name=%s&count=20&language=en&format=json", url.QueryEscape(location))
174174
request, _ := http.NewRequest("GET", requestUrl, nil)
175175
responseJson, err := decodeJsonFromRequest[openMeteoPlacesResponseJson](defaultHTTPClient, request)
176176
if err != nil {

0 commit comments

Comments
 (0)