Beispiel #1
0
 /**
  * @return string
  */
 public function getStringAsDegreeMinuteSecond()
 {
     $degLat = GeoDegree::degreeFromDecimals($this->lat);
     $defLng = GeoDegree::degreeFromDecimals($this->lng);
     return sprintf("%s,%s", $degLat, $defLng);
 }
Beispiel #2
0
 /**
  * @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();
 }