/** * Returns a element with the DcMcS (Degrees Colon Minutes Colon Seconds) Format like: N 70:50:12 E 15:12:47.34 * * @param boolean $withoutSpaces Remove all whitespace characters from resulting string? (default=FALSE) * @param integer $secondsDecimalPlaces Round seconds to decimal places, defined here (default=3) * @param string $separator The separator between latitude (first element) and longitude for return * @return string */ public function formatDcMcS(bool $withoutSpaces = false, int $secondsDecimalPlaces = 3, string $separator = ' ') : string { if (!$this->isValid()) { return ''; } $res = $this->Latitude->formatDcMcS($withoutSpaces, $secondsDecimalPlaces) . (empty($separator) ? ' ' : $separator) . $this->Longitude->formatDcMcS($withoutSpaces, $secondsDecimalPlaces); return $res; }