任何朋友可以有任何代码,在api的帮助下,我可以看到一周的天气更新,如果任何朋友有任何教程,请给我。
它是为iphone或php实现的。
thnks
发布于 2010-12-21 18:08:40
无论是在php中使用google
请参阅链接http://komunitasweb.com/2009/09/showing-the-weather-with-php-and-google-weather-api/
iphone在上面看到了一个老问题:
https://stackoverflow.com/questions/1305127/free-weather-api
发布于 2016-05-10 12:23:21
下面是一个php示例(注意:需要来自openweathermap.org的有效API-KEY )
$url = 'http://api.openweathermap.org/data/2.5/forecast?q=London,us&mode=xml&appid=<API-KEY>'
$forecast = file_get_contents($url);你可以通过城市名称,城市ID,纬度和经度等得到预报。
https://stackoverflow.com/questions/4498077
复制相似问题