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