getLatitude() 공개 메소드

Returns latitude
public getLatitude ( ) : ValueObjects\Geography\Latitude
리턴 ValueObjects\Geography\Latitude
예제 #1
0
 /**
  * Returns the underlying Coordinate object
  *
  * @param  self           $coordinate
  * @return BaseCoordinate
  */
 protected static function getBaseCoordinate(self $coordinate)
 {
     $latitude = $coordinate->getLatitude()->toNative();
     $longitude = $coordinate->getLongitude()->toNative();
     $ellipsoid = BaseEllipsoid::createFromName($coordinate->getEllipsoid()->toNative());
     $coordinate = new BaseCoordinate(array($latitude, $longitude), $ellipsoid);
     return $coordinate;
 }
예제 #2
0
 public function getLatitude()
 {
     $latitude = new Latitude(40.829137);
     $this->assertTrue($this->coordinate->getLatitude()->sameValueAs($latitude));
 }