Skip to content

Commit

Permalink
Added GeoObject::getKind()
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry2080 committed Apr 10, 2016
1 parent 34ae5e3 commit fe1da3b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions source/Yandex/Geo/GeoObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function __construct(array $rawData)
{
$data = array(
'Address' => $rawData['metaDataProperty']['GeocoderMetaData']['text'],
'Kind' => $rawData['metaDataProperty']['GeocoderMetaData']['kind']
);
array_walk_recursive(
$rawData,
Expand Down Expand Up @@ -104,6 +105,15 @@ public function getAddress()
return isset($this->_data['Address']) ? $this->_data['Address'] : null;
}

/**
* Тип
* @return string|null
*/
public function getKind()
{
return isset($this->_data['Kind']) ? $this->_data['Kind'] : null;
}

/**
* Страна
* @return string|null
Expand Down

0 comments on commit fe1da3b

Please sign in to comment.