Log in

View Full Version : Cannot read GPS Coordinates after "Take Photo" option



alexdorfman
01-27-2017, 01:09 AM
Hi!
I created app to read Geo Location using exif_read_data function.

$info = exif_read_data($file);
if (isset($info['GPSLatitude']) && isset($info['GPSLongitude'])) {
$GPSLatitudeRef = strtolower(trim($info['GPSLatitudeRef']));
...................................... and so on
}
I used iPhone 6 to take a picture and upload it using my app.

Scenario 1:
I took a pic
Opened app to upload a file
Selected (from "Photo Library") - got coordinates!

Scenario 2:
Opened app to upload a file
Selected "Take Photo" - no coordinates! :-(

Does anyone knows why?

Thanks,
Alex