src/Lootils/Geo/Location.php
public function DMSLatitude($format = '%d %d %F %s') {

    $lat = $this->convertDecToDMS($this->latitude());

    $direction = 'N';
    if ($lat['degrees'] < 0) {
      $direction = 'S';
    }

    return sprintf($format, $lat['degrees'], $lat['minutes'], $lat['seconds'], $direction);
  }
public function DMSLatitude($format = '%d %d %F %s') {

    $lat = $this->convertDecToDMS($this->latitude());

    $direction = 'N';
    if ($lat['degrees'] < 0) {
      $direction = 'S';
    }

    return sprintf($format, $lat['degrees'], $lat['minutes'], $lat['seconds'], $direction);
  }
Get the current latitude in Degrees, Minutes, Seconds notation.

@param string $format
The format string to use for the response. Defaults to %d %d %F %s

@return string
A string with the current latitude in DMS format.