Receive a WOEID by Lat, Long with Yahoos API

后端 未结 11 1943
北荒
北荒 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:32

    Instead using lng & lat, you can use the current online IP Address to get the City Name then use Yahoo GeoPlanet web service to get the WOEID. Follow this tutorial to get the detail: http://4rapiddev.com/php/get-woeid-of-a-city-name-from-ip-address-with-php/

提交回复
热议问题