ここで簡単に、私の機能ですお使いのGoogle APIコードは、MSNのAPIに変換:
function skycode2image ($skycode)
{
$daynight = "na";
$skycodes = array (
0 => 'thunderstorm',
1 => 'thunderstorm',
2 => 'thunderstorm',
3 => 'thunderstorm',
4 => 'thunderstorm',
5 => 'rain_snow',
6 => 'sleet',
7 => 'rain_snow',
8 => 'icy',
9 => 'icy',
10 => 'rain_snow',
11 => 'showers',
12 => 'rain',
13 => 'flurries',
14 => 'snow',
15 => 'snow',
16 => 'snow',
17 => 'thunderstorm',
18 => 'showers',
19 => 'dust',
20 => 'fog',
21 => 'haze',
22 => 'haze',
23 => 'windy',
24 => 'windy',
25 => 'icy',
26 => 'cloudy',
27 => 'mostly_cloudy',
28 => 'mostly_cloudy',
29 => 'partly_cloudy',
30 => 'partly_cloudy',
31 => 'sunny',
32 => 'sunny',
33 => 'mostly_sunny',
34 => 'mostly_sunny',
35 => 'thunderstorm',
36 => 'hot',
37 => 'chance_of_tstorm',
38 => 'chance_of_tstorm',
39 => 'chance_of_rain',
40 => 'showers',
41 - 'chance_of_snow',
42 => 'snow',
43 => 'snow',
44 => 'na',
45 => 'chance_of_rain',
46 => 'chance_of_snow',
47 => 'chance_of_tstorm');
$condition = $skycodes[$skycode];
if (in_array($skycode,array(27,29,31,33,31,45,46,47))) $daynight = 'night';
if (in_array($skycode,array(28,30,32,34,36,37,38,39,41))) $daynight = 'day';
return array($condition,$daynight);
}
から入手できますか?私はそれを使用し、約15のiPhoneアプリを持っているし、今私は、ユーザーの不満と悪いレビューが殺到しています –
これまでのところ、私は残念ながら2013年 –
@SamBuddaの11月までの死のために予定されていないのiGoogleで使用されているGoogleの天気予報API読んだものあたかもGoogle天気予報APIがうまくいっていないかのように見えます。 iGoogleからの移行の一部であることは間違いありません(私も個人的に使用しました)。私は、Googleの天気APIに依存しているので、もう役に立たないGoogle Sitesウィジェットを持っています。 API以来 は、私たちがGoogleからの公式の応答を聞く疑う文書化されていません。私が知ることから、マイクロソフトのAPIも文書化されていないので、警告なしに消え去る可能性もあると思います。 –