PHP extract GPS EXIF data
This is my modified version. The other ones didn’t work for me. It will give you the decimal versions of the GPS coordinates. The code to process the EXIF data: $exif = exif_read_data($filename); $lon = getGps($exif[“GPSLongitude”], $exif[‘GPSLongitudeRef’]); $lat = getGps($exif[“GPSLatitude”], $exif[‘GPSLatitudeRef’]); var_dump($lat, $lon); Prints out in this format: float(-33.8751666667) float(151.207166667) Here are the functions: function … Read more