From a80446d438c3da9f8705ef296881fe8c88ba0eb1 Mon Sep 17 00:00:00 2001 From: bubnovKelnik Date: Mon, 11 Apr 2016 14:23:32 +0300 Subject: [PATCH] Add 'Locality' to GeoObject::$_addressHierarchy[] --- source/Yandex/Geo/GeoObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Yandex/Geo/GeoObject.php b/source/Yandex/Geo/GeoObject.php index 862685c..40f1661 100644 --- a/source/Yandex/Geo/GeoObject.php +++ b/source/Yandex/Geo/GeoObject.php @@ -10,7 +10,7 @@ class GeoObject { protected $_addressHierarchy = [ 'Country' => array('AdministrativeArea'), - 'AdministrativeArea' => array('SubAdministrativeArea'), + 'AdministrativeArea' => array('SubAdministrativeArea', 'Locality'), 'SubAdministrativeArea' => array('Locality'), 'Locality' => array('DependentLocality', 'Thoroughfare'), 'DependentLocality' => array('DependentLocality', 'Thoroughfare'),