upping limit on returned results from geocoder
This commit is contained in:
		
							parent
							
								
									fe670bc62a
								
							
						
					
					
						commit
						4e40191ee9
					
				@ -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"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user