Android Read Image EXIF GPS as Decimal

June 18, 2018
val exif = ExifInterface(filePath)

val latLng = FloatArray(2)

if (exif.getLatLong(latLng)) {
    Log.d(TAG, "latlon=${latLng[0]}, ${latLng[1]}")
}
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.