public function contains($object)
    {
        if ($object instanceof LatLng) {
            $lat = $object->getLatitude();
            $lng = $object->getLongitude();

            if ($this->getWest() > $lng || $this->getEast() < $lng) {
                return false;
            }

            return ($this->getSouth() <= $lat && $this->getNorth() >= $lat);
        } elseif ($object instanceof LatLngBounds) {
            throw new \RuntimeException('LatLngBounds checking not implemented so far');
        }

        return false;
    }
public function contains($object)
    {
        if ($object instanceof LatLng) {
            $lat = $object->getLatitude();
            $lng = $object->getLongitude();

            if ($this->getWest() > $lng || $this->getEast() < $lng) {
                return false;
            }

            return ($this->getSouth() <= $lat && $this->getNorth() >= $lat);
        } elseif ($object instanceof LatLngBounds) {
            throw new \RuntimeException('LatLngBounds checking not implemented so far');
        }

        return false;
    }
public function contains ( $ object ) { if ( $ object instanceof LatLng ) { $ lat = $ object -> getLatitude ( ) ; $ lng = $ object -> getLongitude ( ) ; if ( $ this -> getWest ( ) > $ lng || $ this -> getEast ( ) < $ lng ) { return false ; } return ( $ this -> getSouth ( ) <= $ lat && $ this -> getNorth ( ) >= $ lat ) ; } elseif ( $ object instanceof LatLngBounds ) { throw new \ RuntimeException ( 'LatLngBounds checking not implemented so far' ) ; } return false ; }
Check if given object in in the bounds.

@param LatLng|LatLngBounds $object The given object.

@return bool
@throws \RuntimeException If LatLngBounds is checked. Not implemented yet.
Check if given object in in the bounds .