code: public function getCenter(): Coordinate
      {
          $centerLat = ($this->getNorth() + $this->getSouth()) / 2;
  
          return new Coordinate($centerLat, $this->getCenterLng());
      }
docs: Calculates the center of this bounds object and returns it as a
  Coordinate instance.
  
  @return Coordinate
  @throws \InvalidArgumentException