public function DMSLongitude($format = '%d %d %F %s') {
    $long = $this->convertDecToDMS($this->longitude());

    $direction = 'E';
    if ($long['degrees'] < 0) {
      $direction = 'W';
    }

    return sprintf($format, $long['degrees'], $long['minutes'], $long['seconds'], $direction);
  }