getCountryId(), $this->getCity(), $this->getZipcode(), $this->getSearchRadius() ); $this->dispatcher->dispatch(MondialRelayEvents::FIND_RELAYS, $event); return $event->getPoints(); } public function parseResults(LoopResult $loopResult) { foreach ($loopResult->getResultDataCollection() as $item) { $loopResultRow = new LoopResultRow($item); $loopResultRow ->set("ID", $item['id']) ->set("LATITUDE", $item['latitude']) ->set("LONGITUDE", $item['longitude']) ->set("ZIPCODE", $item['zipcode']) ->set("CITY", $item['city']) ->set("COUNTRY", $item['country']) ->set("NAME", $item['name']) ->set("ADDRESS", $item['address']) ->set("DISTANCE", $item['distance']) ->set("OPENINGS", $item['openings']) ; $loopResult->addRow($loopResultRow); } return $loopResult; } }