ly.img.android.pesdk.backend.exif / Exify / convertLatOrLongToDouble

convertLatOrLongToDouble

static fun convertLatOrLongToDouble(coordinate: kotlin.Array<Rational>, reference: java.lang.String): double

Gets the double representation of the GPS latitude or longitude coordinate.

Parameters

coordinate - kotlin.Array<Rational>: an array of 3 Rationals representing the degrees, minutes, and seconds of the GPS location as defined in the exif specification.

reference - java.lang.String: a GPS reference reperesented by a String containing "N", "S", "E", or "W".

Return
double: the GPS coordinate represented as degrees + minutes/60 + seconds/3600