/** * @return string */ public function getStringAsDegreeMinuteSecond() { $degLat = GeoDegree::degreeFromDecimals($this->lat); $defLng = GeoDegree::degreeFromDecimals($this->lng); return sprintf("%s,%s", $degLat, $defLng); }
/** * @param int $degrees * @param int $minutes * @param int $seconds * @return float */ public static function decimalsFromDegreesMinutesAndSeconds($degrees, $minutes, $seconds) { $d = new GeoDegree($degrees, $minutes, $seconds); return $d->toDecimals(); }