Any easiest way to get the latitude and longitude of an image, in decimal degree format?
$exif = exif_read_data($photos['file_path'],0, true, false);
print_r($exif);
what i got in this:
[GPS] => Array
(
[GPSLatitudeRef] => N
[GPSLatitude] => Array
(
[0] => 13/1
[1] => 57/1
[2] => 1032/100
)
[GPSLongitudeRef] => E
[GPSLongitude] => Array
(
[0] => 121/1
[1] => 9/1
[2] => 5137/100
)
[GPSAltitudeRef] =>
[GPSAltitude] => 344/1
[GPSTimeStamp] => Array
(
[0] => 10/1
[1] => 12/1
[2] => 5292/100
)
[GPSSpeedRef] => K
[GPSSpeed] => 0/1
[GPSImgDirectionRef] => T
[GPSImgDirection] => 32993/102
[GPSDestBearingRef] => T
[GPSDestBearing] => 75030/523
[GPSDateStamp] => 2015:07:28
)
Anyone here can help me to convert this things in decimal degree format?