Is it possible to get xml data from openweathermap by country?
As I search in documentation I have notice that you can search by this diffrent ways:
- By city name
- By geographic coordinate
- By city ID
For example: This is url for getting data by city name:
http://api.openweathermap.org/data/2.5/forecast/daily?q=Berlin&mode=xml&units=metric
So if you put instead city name (Berlin) in q=?
just a country:
http://api.openweathermap.org/data/2.5/forecast/daily?q=Germany&mode=xml&units=metric
I would get an error message: {"message":"","cod":"404"}
Thanks for help