I want to take a photo and use the stored GPS coordinates and the orientation of the phone to do some calculations. How can I access that information?

Alternatively if there is an API to do that I could make my own app.

  • Android provides Sensors API if you want to create yourself an app.
    – Andrew T.
    Mar 6 '15 at 5:44

Of course! You can use Metadata viewer to see the GPS coordinates and other information of your photos. Android has Handful of APIs for anything you want. If you a developer you can make use of that. Here is all you need.


This is one of those problems that I believe requires a documented standard: the same reason every platform trivially accesses the GPS location of a photo is because of EXIF and it's standardized tags.

EXIF is not user-extensible, and side car files are too namespace-y (proprietary).

Unless I'm wrong about there not being a standard place for Euler angles or even the quaternion that establishes device attitude.

  • After WWDC 2017, ARKit mostly addresses this for iOS. Jun 24 '17 at 2:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.