hello,
I am creating a weather page in PHP.
The user enters a city/place name in a search form and I search for his input in where.yahooapis to find the 5 top relative woeids.
(i.e. http:// where.yahooapis.com/v1/places.q("Rethimno");start=0;count=5?appid=...)
Then I present the 5 top relatives results in a radio button list. The user selects a city/place from the list and I fetch the weather data for his choice from weather.yahooapis.
(i.e. http:// weather.yahooapis.com/forecastrss?w=961110)
I noticed that there are woeids with “placeTypeName” code="7" (i.e. Town) for which there are no weather data. (i.e. 961110)
Is there a way to know if weather data exists for a place from the where.yahooapis response, so that I don't include it in the radio button list, or the only way to know that is by doing a http request to weather.yahooapis and parse the response for an error?
(i.e. < title /> Yahoo! Weather – Error … )