1

I'd like to build an app that takes (with permission of course) user-uploaded images and makes use of the geotagging info embedded in the image. I'm a PHP/Javascript developer...how do I obtain that info?

d2burke
  • 4,081
  • 3
  • 39
  • 51

1 Answers1

1

Cameras generally use exif headers to store GPS information.

With PHP, the EXIF module allows you to read these headers.

To activate this extension, you must compile PHP with --enable-exif.

Benjamin Dubois
  • 971
  • 7
  • 11
  • Ok, thanks Benjamin. I just checked my php info page, and exif is "enabled"...can you point me in the direction of any sort of example on how to actually use it? Thanks! – d2burke Aug 09 '11 at 18:47
  • Actually...this link (http://rakaz.nl/2007/01/having-fun-with-geotagged-photos.html) has me off and running. Thanks again, – d2burke Aug 09 '11 at 18:49