I'm using PhoneGap 1.4.1 to create an iPhone application. I can successfully perform the following tasks:
- retrieve an image from a photo album or the camera roll
- take a new image with the camera
- retrieve the current geolocation of the device
It is my understanding that images taken on the iPhone contain metadata. I believe the metadata contains the geolocation of where the picture was taken.
I can't seem to find anything in the PhoneGap API about image metadata. I can already retrieve the device's current location, but I need to access the coordinates of where a picture was taken.
Is it possible to access the stored geolocation of an iPhone photo using PhoneGap?
It is not a PhoneGap features at the moment but you can still do it in Objective-C.
Here are some link to help you do it
UIImagePickerController and extracting EXIF data from existing photos
Then if you can't to use it with PhoneGap, you'll probably have to create a PhoneGap Plugin
来源:https://stackoverflow.com/questions/9675322/is-it-possible-to-retrive-an-existing-iphone-images-metadata-specifically-geol