Returns longitude
public getLongitude ( ) : ValueObjects\Geography\Longitude | ||
return | ValueObjects\Geography\Longitude |
/** * 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; }
public function getLongitude() { $longitude = new Longitude(16.555838); $this->assertTrue($this->coordinate->getLongitude()->sameValueAs($longitude)); }