public function testGeolist() { $params = new GeolistParams(); $params->setType([GeoType::attraction])->setRegionId('1'); $data = Api2Gis::call()->geoList($params); $this->assertGreaterThan(0, $data->getCount()); $this->assertGreaterThan(0, count($data->getItems())); }
/** * Список объектов на карте * @param GeolistParams $params * @return GisResponse * @throws \HttpResponseException */ public function geoList(GeolistParams $params) { return $this->_callApi('geo/list', $params->toArray()); }