/** * Returns a element with the DM (Degrees Minutes) Format like: N 70° 50.150037' E 15° 12.761451 * * @param boolean $showMinuteChar Show the minute character ' (single quote)? * @param integer $minutesDecimalPlaces Round minutes to decimal places, defined here (default=6) * @param string $separator The separator between latitude (first element) and longitude for return * @return string */ public function formatDM(bool $showMinuteChar = true, int $minutesDecimalPlaces = 6, string $separator = ' ') : string { if (!$this->isValid()) { return ''; } $res = $this->Latitude->formatDM($showMinuteChar, $minutesDecimalPlaces) . (empty($separator) ? ' ' : $separator) . $this->Longitude->formatDM($showMinuteChar, $minutesDecimalPlaces); return $res; }