Peta echo $nama ?> / echo $nama ?> Map
Posisi echo $nama ?> terletak pada koordinat:
Latitude Longitude:
Koordinat GPS echo $nama ?>:
Sedangkan koordinat UTM echo $nama ?> ialah:
E:
Peta echo $nama ?> Google Map
$url = "http://api.openweathermap.org/data/2.5/weather?lat=" . $lat . "&lon=" . $lng; $url .= '&appid=c09c0cf41993e517df66efb22c901808'; $url .= '&units=metric'; $url .= '&mode=xml'; $ch = curl_init(); curl_setopt( $ch, CURLOPT_HTTPHEADER, $header ); curl_setopt($ch,CURLOPT_ENCODING , "gzip"); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET'); curl_setopt( $ch, CURLOPT_URL, $url ); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); $response = curl_exec($ch); $xml = simplexml_load_string($response); if ($xml->city[id] != false) { echo "
Prakiraan Cuaca Di " . $nama . " Saat Ini
"; echo ""; echo "Cuaca: " . $xml->weather[value] . "
"; echo "Temperatur: " . $xml->temperature[value] . " °C
"; echo "Kelembaban: " . $xml->humidity[value] . " %
"; } ?>