From 0e6c9e9810c00d3a7fc2cf012420c38f47b24d9b Mon Sep 17 00:00:00 2001 From: Quentin Ligier Date: Sun, 17 Apr 2016 22:24:12 +0200 Subject: [PATCH] Correction of function name --- php/helpers/getGPSCoordinate.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/php/helpers/getGPSCoordinate.php b/php/helpers/getGPSCoordinate.php index 391c777..2296725 100644 --- a/php/helpers/getGPSCoordinate.php +++ b/php/helpers/getGPSCoordinate.php @@ -5,9 +5,9 @@ * @return string Normalized coordinate as float number (degrees). */ function getGPSCoordinate($coordinate, $ref) { - $degrees = count($coordinate) > 0 ? gps2Num($coordinate[0]) : 0; - $minutes = count($coordinate) > 1 ? gps2Num($coordinate[1]) : 0; - $seconds = count($coordinate) > 2 ? gps2Num($coordinate[2]) : 0; + $degrees = count($coordinate) > 0 ? formattedToFloatGPS($coordinate[0]) : 0; + $minutes = count($coordinate) > 1 ? formattedToFloatGPS($coordinate[1]) : 0; + $seconds = count($coordinate) > 2 ? formattedToFloatGPS($coordinate[2]) : 0; $flip = ($ref == 'W' || $ref == 'S') ? -1 : 1;