public function byAddress(Address $address) { $this->requestType = 'placesByAddress'; $this->request->addQueryItem("city", $address->getCity()->getName()); $this->request->addQueryItem("state", $address->getCity()->getState()); $this->request->addQueryItem("street", $address->getStreet()); $this->request->addQueryItem("number", $address->getNumber()); return $this; }