src/Convert/Convert.php
private function parseCoordinate($coordinate)
    {
        list($degrees) = explode('.', abs($coordinate));
        list($minutes) = explode('.', (abs($coordinate) - $degrees) * 60);

        return [
            'positive'       => $coordinate >= 0,
            'degrees'        => (string) $degrees,
            'decimalMinutes' => (string) round((abs($coordinate) - $degrees) * 60,
                ConvertInterface::DECIMAL_MINUTES_PRECISION,
                ConvertInterface::DECIMAL_MINUTES_MODE),
            'minutes'        => (string) $minutes,
            'seconds'        => (string) round(((abs($coordinate) - $degrees) * 60 - $minutes) * 60),
        ];
    }
private function parseCoordinate($coordinate)
    {
        list($degrees) = explode('.', abs($coordinate));
        list($minutes) = explode('.', (abs($coordinate) - $degrees) * 60);

        return [
            'positive'       => $coordinate >= 0,
            'degrees'        => (string) $degrees,
            'decimalMinutes' => (string) round((abs($coordinate) - $degrees) * 60,
                ConvertInterface::DECIMAL_MINUTES_PRECISION,
                ConvertInterface::DECIMAL_MINUTES_MODE),
            'minutes'        => (string) $minutes,
            'seconds'        => (string) round(((abs($coordinate) - $degrees) * 60 - $minutes) * 60),
        ];
    }
private function parseCoordinate ( $ coordinate ) { list ( $ degrees ) = explode ( '.' , abs ( $ coordinate ) ) ; list ( $ minutes ) = explode ( '.' , ( abs ( $ coordinate ) - $ degrees ) * 60 ) ; return [ 'positive' => $ coordinate >= 0 , 'degrees' => ( string ) $ degrees , 'decimalMinutes' => ( string ) round ( ( abs ( $ coordinate ) - $ degrees ) * 60 , ConvertInterface :: DECIMAL_MINUTES_PRECISION , ConvertInterface :: DECIMAL_MINUTES_MODE ) , 'minutes' => ( string ) $ minutes , 'seconds' => ( string ) round ( ( ( abs ( $ coordinate ) - $ degrees ) * 60 - $ minutes ) * 60 ) , ] ; }
Parse decimal degrees coordinate to degrees minutes seconds and decimal minutes coordinate.

@param string $coordinate The coordinate to parse.

@return array The replace pairs values.
Parse decimal degrees coordinate to degrees minutes seconds and decimal minutes coordinate .