gps($exif["GPSLatitude"], $exif['GPSLatitudeRef']);
$location['longitude'] = $this->gps($exif["GPSLongitude"], $exif['GPSLongitudeRef']);
$location['hasLocation'] = true;
} else {
$location['hasLocation'] = false;
}
add_post_meta($post_thumbnail_id,'EXIF_location',$location) || update_post_meta($post_thumbnail_id,'EXIF_location',$location);
}
return $location;
}
function feed_addNameSpace() {
echo 'xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"'."\n";
}
function feed_addMeta($for_comments) {
$post_thumbnail_id = get_post_thumbnail_id( $GLOBALS['post']->ID );
$location = $this->getLocationFromDBorExif($post_thumbnail_id);
if (!$for_comments && $location['hasLocation']) {
echo "".$location['latitude']."\n";
echo "".$location['longitude']."\n";
}
}
}
$addgeorss = new addgeorss_class();
?>