I am new to learning about AngularJS and recently came across a helpful article on connecting to an API and using its data in our app. The article specifically focuses on displaying weather information with AngularJS.
The only downside is that the weather forecast provided is for US locations only. While there are APIs available for global weather forecasts, I am unable to connect to them as demonstrated in the given example.
$http.get('https://query.yahooapis.com/v1/public/yql?q=SELECT%20*%20FROM%20weather.forecast%20WHERE%20location%3D%22' + zip + '%22&format=json&diagnostics=true&callback=')
Could someone help me create a similar query string for fetching weather data from any country?
I have tried researching but haven't found a solution yet. Any assistance would be greatly appreciated.