pasham srinivasarao
pasham srinivasarao

Reputation: 67

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.

Upvotes: 0

Views: 1267

Answers (1)

sanastasiadis
sanastasiadis

Reputation: 1202

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.

Upvotes: 1

Related Questions