| baseportal | |||
| English - Deutsch | "Es gibt keine dummen Fragen - jeder hat einmal angefangen" | ||
| 
 | 
| Ausgewählter Eintrag: | Zur Liste | 
$url = "https://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=".$address; $json=get($url);
 return serialize(json_decode("'.$json.'",1));
$hash_ref=unserial($hash_string);
 $arr_ref=$$hash_ref{$_};
 %data=%$arr_ref;
 out "$_ => ".dump(%data);
}
| Alle Einträge zum Thema: | Zur Liste | 
 //API abfragen
        $xml = simplexml_load_file($request_url) or die("url not loading");
        //Statuscode und Auswertung
        $status = $xml->Response->Status->code;
        if (strcmp($status, "200") == 0) {
            // Erfolgreich codiert!
            $geocode_pending = false;
            $coordinates = $xml->Response->Placemark->Point->coordinates;
            $coordinatesSplit = split(",", $coordinates);
            // Format: Longitude, Latitude, Altitude
            $lat = $coordinatesSplit[1];
            $lng = $coordinatesSplit[0];
            //Daten in die Tabelle schreiben
            mysql_query("Update ADRESS Set GEO_LAT = '$lat', GEO_LNG= '$lng' Where ID ='$d[ID]'");
        } else if (strcmp($status, "620") == 0) {
            // Abfrage erfolgte zu schnell hintereinander
            $delay += 100000;
        } else {
            // Fehler beim Codieren
            $geocode_pending = false;
            echo "Address " . $address . " failed to geocoded. ";
            echo "Received status " . $status . "\n";
        }
$url = "https://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=".$address; $json=get($url);
 return serialize(json_decode("'.$json.'",1));
$hash_ref=unserial($hash_string);
 $arr_ref=$$hash_ref{$_};
 %data=%$arr_ref;
 out "$_ => ".dump(%data);
}
| Liste der Einträge von 3075 bis 3150: | Einklappen | Zur Eingabe | 
| Neueste Einträge << 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | Neuere Einträge < | Zur Eingabe | > Ältere Einträge | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 >> Älteste Einträge | 
| © baseportal.de. Alle Rechte vorbehalten. Nutzungsbedingungen |