From 4e40191ee970e14574bfdd1bb816b66909df1155 Mon Sep 17 00:00:00 2001 From: KeeganForelight Date: Fri, 13 Jan 2023 18:45:19 -0500 Subject: [PATCH] upping limit on returned results from geocoder --- server_weather.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server_weather.sh b/server_weather.sh index 5060bdc..a96bb79 100755 --- a/server_weather.sh +++ b/server_weather.sh @@ -15,14 +15,14 @@ source "$KEY_FILE" lookup_location() { # search for a location - url="http://api.openweathermap.org/geo/1.0/direct?q=$SEARCH&appid=$API_KEY" + url="http://api.openweathermap.org/geo/1.0/direct?q=$SEARCH&appid=$API_KEY&limit=5" res=$(curl --silent -fL "$url") echo "$res" } lookup_zipcode() { # lookup based on zipcode - url="http://api.openweathermap.org/geo/1.0/zip?zip=$ZIPCODE&appid=$API_KEY" + url="http://api.openweathermap.org/geo/1.0/zip?zip=$ZIPCODE&appid=$API_KEY&limit=5" res=$(curl --silent -fL "$url") echo "$res" }