0

Possible Duplicate:
How Do I Get The Correct Latitude and Longitude From An Uploaded iPhone Photo?

Does anyone know how you can get the coordinates at which an image was taken in IOS. If you go to the Photos app in IOS you can see where photos were taken and I'd like to get that information when I load a photo in my app.

Community
  • 1
  • 1
  • 1
    See the question and answer [How Do I Get The Correct Latitude and Longitude From An Uploaded iPhone Photo?](http://stackoverflow.com/q/9319465/1318452) – Cowirrie Apr 12 '12 at 08:00

1 Answers1

1

Try this:

CLLocation *location = [asset valueForProperty:ALAssetPropertyLocation];
Antonio MG
  • 20,382
  • 3
  • 43
  • 62
  • Not sure I gave enough info. I'm using the UIImagePickerController and then on the UIImagePickerControllerDelegate I handle the didFinishPickingMediaWithInfo callback. But I'm not sure how to go from there. I can get the image in this method, but I don't know where to get the coordinates for the image. – Dirko Swanepoel Apr 12 '12 at 19:28
  • I'm having the same problem. I take the photo and, as soon as I get the image back, I check the assets and ALAssetPropertyLocation is not present, even with permission already granted to the app in question (and to the Camera app, FWIW), on iOS 5.x on an iPhone 4 and iPad 3rd gen. – Joe D'Andrea Jun 17 '12 at 10:58