I am going to capture an image inside my App and my system would like to collect the geo location data geo data inside the image file.
I have tried to grant location permission in my Android device and use Camera plugin to take a photo, unluckily, the photo taken doesn't consist of the geo data.
Is there any other solution to do so?
One more thing, if you don't get it working with the existing camera plugin, consider to create a plugin using this Cordova Plugin: https://github.com/remoorejr/cordova-plugin-camera-with-exif.
Maybe I give it a try this evening and try to make the plugin for you.
Hello Daniel,
Thank you for your suggestion, I am trying to create a plugin with the proposed Cordova plugin.
Thank you Daniel, it works now!
Hi Carlos,
This information is stored in the EXIF meta data in the image.
Maybe you can use on of the following Forge components to extract it:
Regards,
Daniel
Hi Daniel,
Thank you for your information, I have tired the mentioned plugin, but all of them are going to extract the EXIF meta data from the image, but I am going to write the data inside an image (e.g. I would like to store the geo location data in the picture that taken in my mobile App)
But isn't that a feature of your device camera to do that? Why would you need to code that yourself?
I guessed it too before, although I had enabled this setting in my camera, the picture taken using the camera plugin still not contain the geo data information.
Then I tried to use my native camera, the native camera can successfully take a picture with geo data information. I think the camera plugin did some image processing on the image captured, so the image doesn't have such information.
Are you using the https://www.outsystems.com/forge/component-overview/1390/camera-plugin?OutSystems R&D Camera Plugin.
It uses the following Cordova Plugin: https://github.com/OutSystems/cordova-plugin-camera#4.0.3-OS5
If you search the github page there is something mentioned about CameraUsesGeolocation but only for iOS, so on what type of device are you testing iOS or Android?
Inspecting the iOS code you need to write the photo as JPEG not PNG if you want to have EXIF meta data in the photo.
How did you manage to achieve this? I have similar requirements.
Thanks
Wafa