protected function extractGPSCoordinate($components)
    {
        if (!is_array($components)) {
            $components = array($components);
        }
        $components = array_map(array($this, 'normalizeComponent'), $components);

        if (count($components) > 2) {
            return floatval($components[0]) + (floatval($components[1]) / 60) + (floatval($components[2]) / 3600);
        }

        return reset($components);
    }
protected function extractGPSCoordinate($components)
    {
        if (!is_array($components)) {
            $components = array($components);
        }
        $components = array_map(array($this, 'normalizeComponent'), $components);

        if (count($components) > 2) {
            return floatval($components[0]) + (floatval($components[1]) / 60) + (floatval($components[2]) / 3600);
        }

        return reset($components);
    }
protected function extractGPSCoordinate ( $ components ) { if ( ! is_array ( $ components ) ) { $ components = array ( $ components ) ; } $ components = array_map ( array ( $ this , 'normalizeComponent' ) , $ components ) ; if ( count ( $ components ) > 2 ) { return floatval ( $ components [ 0 ] ) + ( floatval ( $ components [ 1 ] ) / 60 ) + ( floatval ( $ components [ 2 ] ) / 3600 ) ; } return reset ( $ components ) ; }
Extract GPS coordinates from components array

@param array|string $components
@return float
Extract GPS coordinates from components array