public function get($coord) {
        $coord = rad2deg($coord);
        $degrees = (integer) $coord;
        $compass = '';
        if ($this->direction == N::LAT) {
            if ($degrees < 0)
                $compass = 'S';
            elseif ($degrees > 0)
                $compass = 'N';
        }elseif ($this->direction == N::LONG) {
            if ($degrees < 0)
                $compass = 'W';
            elseif ($degrees > 0)
                $compass = 'E';
        }
        $minutes = $coord - $degrees;
        if ($minutes < 0)
            $minutes -= (2 * $minutes);
        if ($degrees < 0)
            $degrees -= (2 * $degrees);

        $minutes = $minutes * 60;
        $seconds = $minutes - (integer) $minutes;
        $minutes = (integer) $minutes;
        $seconds = (float) $seconds * 60;

        $coordinate = sprintf($this->output_format, $degrees, $minutes, $seconds, $compass);
        return $coordinate;
    }