upping limit on returned results from geocoder

This commit is contained in:
KeeganForelight 2023-01-13 18:45:19 -05:00
parent fe670bc62a
commit 4e40191ee9

View File

@ -15,14 +15,14 @@ source "$KEY_FILE"
lookup_location() { lookup_location() {
# search for a 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") res=$(curl --silent -fL "$url")
echo "$res" echo "$res"
} }
lookup_zipcode() { lookup_zipcode() {
# lookup based on 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") res=$(curl --silent -fL "$url")
echo "$res" echo "$res"
} }