2010-12-21 7 views

답변

0

사용 PHP에

링크 http://komunitasweb.com/2009/09/showing-the-weather-with-php-and-google-weather-api/

,745를 볼 것인지 구글

thnks 아이폰 또는 PHP 용 구현 아이폰에

너무 오래된 질문을 참조하십시오

여기 https://stackoverflow.com/questions/1305127/free-weather-api

+0

및 어떻게 해석 할 수 있습니까 ?? – user874090

+0

당신은 PHP를 의미합니까? 당신은 링크에서 예제를 볼 수 있습니다. xpath를 사용합니다. –

0

는 PHP를 예입니다 : 당신이 도시에 의해 예상 얻을 수있는

$url = 'http://api.openweathermap.org/data/2.5/forecast?q=London,us&mode=xml&appid=<API-KEY>' 
$forecast = file_get_contents($url); 

(주 openweathermap.org에서 유효한 API-KEY를 필요) 이름, 도시 ID, 위도 & 경도 등