Ejemplo n.º 1
0
 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()));
 }
Ejemplo n.º 2
0
 /**
  * Список объектов на карте
  * @param GeolistParams $params
  * @return GisResponse
  * @throws \HttpResponseException
  */
 public function geoList(GeolistParams $params)
 {
     return $this->_callApi('geo/list', $params->toArray());
 }