/** * Return the center of the rectangle in latitude-longitude space (in general * this is not the center of the region on the sphere). */ public function getCenter() { return S2LatLng::fromRadians($this->lat->getCenter(), $this->lng->getCenter()); }