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

convertLatOrLongToDouble

open static fun convertLatOrLongToDouble(coordinate: Array<Rational!>!, reference: String!): Double

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

Parameters

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

reference - 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