Search code examples
weather-apiyahoo-weather-api

how to get weather feeds for multiple cities in single request using yahoo weather api


i am getting weather feeds from yahoo API ,but at a single request i able to get single place only .i want to get multiple cities feeds at a time in single request . please help me to get multiple cities feeds.


Solution

  • Using the web test platform they offer here you can test different YQL queries.

    YQL is a SQL-like language and it supports operators like OR and IN.

    My test concerning your question was this:

    select * from weather.forecast where woeid in (select woeid from geo.places(1) where text in ("nome, ak", "chicago, il", "dallas, tx"))
    

    This brings weather forecast for 3 cities.