2011-02-17 87 views

回答

2

你可以使用一個子選擇從緯度/經度對去一個WOEID

SELECT * FROM weather.woeid 
WHERE w IN (
    SELECT place.woeid 
    FROM flickr.places(1) 
    WHERE (lat,lon) in (55.948503,-3.198931) 
); 

Try in YQL console

+0

這不再有效。我在YQL控制檯中得到這個錯誤:`在where子句中找不到必需的鍵;得到'lat,lon',期待所需的密鑰:(api_key,query)或(lon,api_key,lat)` – hippietrail 2012-02-27 23:09:52

-1

我已經發現了一些東西使用FUL;如果您需要預測天氣yql,請使用 SELECT * FROM weather.bylocation WHERE location ='Indonesia' select * from weather.forecast where location = 90210