final String FORECAST_BASE_URL =
"http://api.openweathermap.org/data/2.5/forecast/daily?";
final String QUERY_PARAM = "q";
Hello. I'm making a weather forecast app. But when I use "http://openweathermap.org"'s API, I stock in trouble how can I get the city code or ID "q"? I try to find the city ID but I can't.
Example code Call by city ID:
api.openweathermap.org/data/2.5/forecast/daily?id=524901
and I heard that "q" is used to "id" also. I mean
api.openweathermap.org/data/2.5/forecast/daily?q=524901
is also possible. i want to do like this.
So, How to find city id? Anybody knows?
There is a similar question that was asked in the OpenWeatherMap support center. Here is the link OpenWeatherMap
Also, here is a link to the list of cities and their respective ID's (just CTRL + F to find the city you want): List of Cities & IDs