Skip to content

Commit

Permalink
Merge pull request #1 from renatbilalov/master
Browse files Browse the repository at this point in the history
Несколько фиксов
  • Loading branch information
deeravenger committed Apr 7, 2014
2 parents 6d04552 + 707c6a3 commit be71572
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/Yandex/Geo/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public function setLang($lang)
* @param string $token
* @return self
*/
public function seToken($token)
public function setToken($token)
{
$this->_filters['key'] = (string)$token;
return $this;
Expand Down
3 changes: 3 additions & 0 deletions source/Yandex/Geo/GeoObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ public function getLocalityName()
if (isset($this->_data['metaDataProperty']['GeocoderMetaData']['AddressDetails']['Country']['AdministrativeArea']['SubAdministrativeArea']['Locality']['LocalityName'])) {
$result = $this->_data['metaDataProperty']['GeocoderMetaData']['AddressDetails']['Country']['AdministrativeArea']['SubAdministrativeArea']['Locality']['LocalityName'];
}
elseif(isset($this->_data['metaDataProperty']['GeocoderMetaData']['AddressDetails']['Country']['Locality']['LocalityName'])) {
$result = $this->_data['metaDataProperty']['GeocoderMetaData']['AddressDetails']['Country']['Locality']['LocalityName'];
}
return $result;
}

Expand Down

0 comments on commit be71572

Please sign in to comment.