Receive a WOEID by Lat, Long with Yahoos API

后端 未结 11 1903
北荒
北荒 2020-12-07 17:57

i searched a while but found nothing, thats simular to my problem.

i\'m trying to use the YAHOO Weather API, for example: http://weather.yahooapis.com/forecastrss?w=

11条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-07 18:38

    Yahoo api uses weather.com actually, so go to weather.com and search for your local weather. I'm in Chicago so I entered 'Chicago, IL' and here's the link in my browser bar showing my weather:

    http://www.weather.com/weather/today/Chicago+IL+USIL0225?lswe=chicago,%20il&from=searchbox_localwx

    In the link is the woeid - which is USIL0225

    You can get yours the same way.

提交回复
热议问题