convertLatOrLongToDouble

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

Return

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

Parameters

coordinate

an array of 3 Rationals representing the degrees, minutes, and seconds of the GPS location as defined in the exif specification.

reference

a GPS reference reperesented by a String containing "N", "S", "E", or "W".

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