zumzum
zumzum

Reputation: 20238

UIImagePickerController saving image with geolocation info?

When I take the picture using the UIImagePickerController I get the info dictionary in the delegate method call didFinishPickingMediaWithInfo.... that does not provide any information on the location of the image...

I want to be able to embed the location where the image was taken and possibly even the heading... How can I save the image with the location embedded in it as well?

Upvotes: 3

Views: 3201

Answers (2)

diatrevolo
diatrevolo

Reputation: 2822

iOS strips the geolocation data from images. You will have to use CoreLocation to replace the stripped data. See the following.

Upvotes: 2

n13
n13

Reputation: 6983

Look at RonC's answer here: UIImagePickerController and extracting EXIF data from existing photos

This shows how to get the location / date from the ALAssetLibrary API. For photos taken by the camera I haven't found a ready-made solution yet but clearly you can just use your own CLLocationManager to fetch the current location.

Upvotes: 0

Related Questions