Hallo zusammen,
mittlerweile gibt es etlich MOD's für Google Maps.
Ich suche eine kleinen MOD, der aus den EXIF Daten die Latitude und Longitude ausliest,
und danach per Link die Google Maps Seite aufruft.
Es wäre gut, wenn man das auslesen auf die Details beschränken könnte (ohne Code Einbau in der Function)!
Ich habe mal angefangen, scheitere aber an der Auslesung von Latitude und Longitude...
Vielleicht hättet Ihr Tips oder könntet mich unterstützen...
// Google Maps Link
$image_gmap = MEDIA_PATH. "/" .$cat_id. "/" .$image_row['image_thumb_file'];
if (function_exists('exif_read_data') && $exif_data = @exif_read_data($image_gmap, 'EXIF')) {
$exif_array = get_exif_info($exif_data);
foreach ($exif_array as $key => $val) {
if (($key != "GPSLongitudeRef") && ($key != "GPSLatitudeRef")) {
if ($key == "GPSLongitude") {
$GPSLongtude = substr (strrchr($val, "("), 1);
$GPSLongtude = substr ($GPSLongtude,0, strlen($GPSLongtude)-1);
}
if ($key == "GPSLatitude") {
$GPSLatitude = substr (strrchr($val, "("), 1);
$GPSLatitude = substr ($GPSLatitude,0, strlen($GPSLatitude)-1);
}
}
}
}
$gmaplink .= "<a href='http://maps.google.de/maps?q=$GPSLatitude,$GPSLongtude&z=5' target='_blank'>Google Map</a>";
$site_template->register_vars(array(
"gmaplink" => $gmaplink
));
$site_template->register_vars("gmaplink", $gmaplink);
unset($gmaplink);