|
Das aktuelle Wetter in Kuba:
weather->forecast_information->city->attributes()->data;
$wetter['datum'] = $api->weather->forecast_information->forecast_date->attributes()->data;
$wetter['zeit'] = $api->weather->forecast_information->current_date_time->attributes()->data;
// Aktuelles Wetter
$wetter[0]['zustand'] = $api->weather->current_conditions->condition->attributes()->data;
$wetter[0]['temperatur'] = $api->weather->current_conditions->temp_c->attributes()->data;
$wetter[0]['luftfeuchtigkeit'] = $api->weather->current_conditions->humidity->attributes()->data;
$wetter[0]['wind'] = $api->weather->current_conditions->wind_condition->attributes()->data;
$wetter[0]['icon'] = str_replace($icons_google, $icons_src, $api->weather->current_conditions->icon->attributes()->data);
// Wettervorhersage heute, morgen, in zwei und in drei Tagen ($wetter[1] bis $wetter[4])
$i = 1;
foreach($api->weather->forecast_conditions as $weather)
{
$wetter[$i]['wochentag'] = $weather->day_of_week->attributes()->data;
$wetter[$i]['zustand'] = $weather->condition->attributes()->data;
$wetter[$i]['tiefsttemperatur'] = $weather->low->attributes()->data;
$wetter[$i]['hoechsttemperatur'] = $weather->high->attributes()->data;
$wetter[$i]['icon'] = str_replace($icons_google, $icons_src, $weather->icon->attributes()->data);
$i++;
}
return $wetter;
}
// Funktionsaufruf in Array
$wetter = website_wetter("havana","cu");
// Beispielhafte Ausgabe
echo " ".$wetter['stadt'].":\n";
echo " ";
echo "Aktuell: \n";
echo " \n";
echo $wetter[0]['zustand']." \n";
echo "".$wetter[0]['temperatur']."° C \n";
echo $wetter[0]['wind']." \n";
echo " | ";
echo " ";
echo "".$wetter[1]['wochentag']." \n";
echo " \n";
echo $wetter[1]['zustand']." \n";
echo "min. ".$wetter[1]['tiefsttemperatur']."° C | max. ".$wetter[1]['hoechsttemperatur']."° C \n";
echo " | ";
echo " ";
echo "".$wetter[2]['wochentag']." \n";
echo " \n";
echo $wetter[2]['zustand']." \n";
echo "min. ".$wetter[2]['tiefsttemperatur']."° C | max. ".$wetter[2]['hoechsttemperatur']."° C \n";
echo " | ";
echo " ";
echo "".$wetter[3]['wochentag']." \n";
echo " \n";
echo $wetter[3]['zustand']." \n";
echo "min. ".$wetter[3]['tiefsttemperatur']."° C | max. ".$wetter[3]['hoechsttemperatur']."° C \n";
echo " | ";
echo " ";
echo "".$wetter[4]['wochentag']." \n";
echo " \n";
echo $wetter[4]['zustand']." \n";
echo "min. ".$wetter[4]['tiefsttemperatur']."° C | max. ".$wetter[4]['hoechsttemperatur']."° C \n";
echo " | ";
?>
|
|
|
|
|
|
|
|
Nützliche
Reiseinformationen über
Kuba
| Krankenhäuser
in Havanna*1 |
responseData->results AS $val) {
$dstring.='<<---<<>-><';
$dstring.=str_replace(array('<<---<<>-><','','','','','',''),'',$val->title);
$dstring.='<<---<<>-><';
$dstring.=str_replace('<<---<<>-><','',$val->url);
}
$dstring=substr($dstring,11);
//echo ' '.$dstring;
$array=explode ('<<---<<>-><',$dstring);
echo " " .
" \n" .
" \n" .
" \n" .
" \n" .
" \n" .
" \n" .
" \n" .
" \n";
?>
|
|
|
| Sehenswürdigkeiten
in Havanna*1 |
responseData->results AS $val) {
$dstring.='<<---<<>-><';
$dstring.=str_replace(array('<<---<<>-><','','','','','',''),'',$val->title);
$dstring.='<<---<<>-><';
$dstring.=str_replace('<<---<<>-><','',$val->url);
}
$dstring=substr($dstring,11);
//echo ' '.$dstring;
$array=explode ('<<---<<>-><',$dstring);
echo " " .
" \n" .
" \n" .
" \n" .
" \n" .
" \n" .
" \n" .
" \n" .
" \n";
?>
|
|
|
| Museen
in Havanna*1 |
responseData->results AS $val) {
$dstring.='<<---<<>-><';
$dstring.=str_replace(array('<<---<<>-><','','','','','',''),'',$val->title);
$dstring.='<<---<<>-><';
$dstring.=str_replace('<<---<<>-><','',$val->url);
}
$dstring=substr($dstring,11);
//echo ' '.$dstring;
$array=explode ('<<---<<>-><',$dstring);
echo " " .
" \n" .
" \n" .
" \n" .
" \n" .
" \n" .
" \n" .
" \n" .
" \n";
?>
|
|
|
| Restaurants
in Havanna*1 |
responseData->results AS $val) {
$dstring.='<<---<<>-><';
$dstring.=str_replace(array('<<---<<>-><','','','','','',''),'',$val->title);
$dstring.='<<---<<>-><';
$dstring.=str_replace('<<---<<>-><','',$val->url);
}
$dstring=substr($dstring,11);
//echo ' '.$dstring;
$array=explode ('<<---<<>-><',$dstring);
echo " " .
" \n" .
" \n" .
" \n" .
" \n" .
" \n" .
" \n" .
" \n" .
" \n";
?>
|
|
|
| Bars
in Havanna*1 |
responseData->results AS $val) {
$dstring.='<<---<<>-><';
$dstring.=str_replace(array('<<---<<>-><','','','','','',''),'',$val->title);
$dstring.='<<---<<>-><';
$dstring.=str_replace('<<---<<>-><','',$val->url);
}
$dstring=substr($dstring,11);
//echo ' '.$dstring;
$array=explode ('<<---<<>-><',$dstring);
echo " " .
" \n" .
" \n" .
" \n" .
" \n" .
" \n" .
" \n" .
" \n" .
" \n";
?>
|
|
|
| Reiseführer
für Kuba
*2 |
Items->Item as $movie) {
$i++;
if($movie->SmallImage->URL){
echo ("\tDetailPageURL."\" ".$tabla."> SmallImage->URL."\" border=\"0\" align=\"left\" alt=\"Cover\">\n");
} else { echo 'Leider kein Bild vorhanden.';
}
echo ("\tDetailPageURL."\" ".$tabla." class=\"reisefuehrer\">".htmlspecialchars($movie->ItemAttributes->Title)." ");
if($movie->ItemAttributes->Author[0]){
echo ("Autor: ".htmlspecialchars($movie->ItemAttributes->Author[0]));
} else {}
if($movie->ItemAttributes->Author[1]){
echo (" - ".htmlspecialchars($movie->ItemAttributes->Author[1]));
} else {}
if($movie->ItemAttributes->Author[2]){
echo (" - ".htmlspecialchars($movie->ItemAttributes->Author[2]));
} else {}
if($movie->ItemAttributes->PublicationDate){
echo (" erschienen: ".htmlspecialchars($movie->ItemAttributes->PublicationDate));
} else {}
if($movie->ItemAttributes->Feature[0]){
echo (" Beschaffenheit: ".htmlspecialchars($movie->ItemAttributes->Feature[0]));
} else {}
if($movie->ItemAttributes->Feature[1]){
echo (", ".htmlspecialchars($movie->ItemAttributes->Feature[1]));
} else {}
if($movie->ItemAttributes->Feature[2]){
echo (", ".htmlspecialchars($movie->ItemAttributes->Feature[2]));
} else {}
if($movie->OfferSummary->LowestNewPrice->FormattedPrice){
echo (" Preis: ".htmlspecialchars($movie->OfferSummary->LowestNewPrice->FormattedPrice));
} else { echo ' Preis: keine Angaben';
}
print "\t \n";
if($i >= 3)
break;}
?>
|
Quelle: Amazon
 |
|
|
|
|
|
|
|
|
|
|